Skip to content

Commit

Permalink
test for small local file system block size
Browse files Browse the repository at this point in the history
  • Loading branch information
yinxusen committed Mar 31, 2014
1 parent a1f1e7e commit 6bdf2c2
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ class WholeTextFileRecordReaderSuite extends FunSuite with BeforeAndAfterAll {

override def beforeAll() {
sc = new SparkContext("local", "test")

// Set the block size of local file system to test whether files are split right or not.
+ sc.hadoopConfiguration.setLong("fs.local.block.size", 32)
}

override def afterAll() {
Expand Down

0 comments on commit 6bdf2c2

Please sign in to comment.