Prechádzať zdrojové kódy

[core] Lower the configured minimum block size value for the tests

Romain Rigaux 12 rokov pred
rodič
commit
2bec2f6

+ 5 - 6
desktop/libs/hadoop/src/hadoop/fs/test_webhdfs.py

@@ -15,11 +15,7 @@
 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 # See the License for the specific language governing permissions and
 # limitations under the License.
-"""
-Tests for Hadoop FS.
-"""
-from nose.tools import assert_false, assert_true, assert_equals, assert_raises, assert_not_equals
-from nose.plugins.attrib import attr
+
 import logging
 import posixfile
 import random
@@ -27,12 +23,15 @@ import sys
 import threading
 import unittest
 
-from hadoop import conf, pseudo_hdfs4
+from nose.tools import assert_false, assert_true, assert_equals, assert_raises, assert_not_equals
+
+from hadoop import pseudo_hdfs4
 from hadoop.fs.exceptions import WebHdfsException
 from hadoop.fs.hadoopfs import Hdfs
 
 LOG = logging.getLogger(__name__)
 
+
 class WebhdfsTests(unittest.TestCase):
   requires_hadoop = True
 

+ 2 - 1
desktop/libs/hadoop/src/hadoop/pseudo_hdfs4.py

@@ -417,7 +417,8 @@ class PseudoHdfs4(object):
       'dfs.datanode.http.address': '0.0.0.0:0',
       'dfs.datanode.ipc.address': '%s:0' % self._fqdn,
       'dfs.replication': 1,
-      'dfs.safemode.min.datanodes': 1
+      'dfs.safemode.min.datanodes': 1,
+      'dfs.namenode.fs-limits.min-block-size': '1000'
     }
     self._hdfs_site = self._tmppath('conf/hdfs-site.xml')
     write_config(hdfs_configs, self._hdfs_site)