ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Onischuk" <aonis...@hortonworks.com>
Subject Review Request 21630: /etc/hadoop/conf/dfs.exclude should be populated in SNN node too.
Date Mon, 19 May 2014 12:16:33 GMT

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/21630/
-----------------------------------------------------------

Review request for Ambari and Myroslav Papirkovskyy.


Bugs: AMBARI-5806
    https://issues.apache.org/jira/browse/AMBARI-5806


Repository: ambari


Description
-------

This is harmless. SNN can start up with an exception. We should fix it in
future release. (For now, I logged this to 1.6.0.)

    
    
    
    2014-04-30 14:02:48,601 ERROR blockmanagement.DatanodeManager (DatanodeManager.java:<init>(198))
- error reading hosts files:
    java.io.IOException: error reading exclude file /etc/hadoop/conf/dfs.exclude
            at org.apache.hadoop.hdfs.server.namenode.HostFileManager.refresh(HostFileManager.java:322)
            at org.apache.hadoop.hdfs.server.blockmanagement.DatanodeManager.<init>(DatanodeManager.java:195)
            at org.apache.hadoop.hdfs.server.blockmanagement.BlockManager.<init>(BlockManager.java:262)
            at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.<init>(FSNamesystem.java:684)
            at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.initialize(SecondaryNameNode.java:245)
            at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.<init>(SecondaryNameNode.java:190)
            at org.apache.hadoop.hdfs.server.namenode.SecondaryNameNode.main(SecondaryNameNode.java:656)
    Caused by: java.io.FileNotFoundException: /etc/hadoop/conf/dfs.exclude (No such file or
directory)
            at java.io.FileInputStream.open(Native Method)
            at java.io.FileInputStream.<init>(FileInputStream.java:138)
            at org.apache.hadoop.util.HostsFileReader.readFileToSet(HostsFileReader.java:65)
            at org.apache.hadoop.hdfs.server.namenode.HostFileManager$MutableEntrySet.readFile(HostFileManager.java:265)
            at org.apache.hadoop.hdfs.server.namenode.HostFileManager.refresh(HostFileManager.java:291)
            ... 6 more
    


Diffs
-----

  ambari-server/src/main/resources/stacks/HDP/1.3.2/services/HDFS/package/scripts/hdfs_snamenode.py
dcd7ac4 
  ambari-server/src/main/resources/stacks/HDP/2.0.6/services/HDFS/package/scripts/hdfs_snamenode.py
dcd7ac4 
  ambari-server/src/test/python/stacks/1.3.2/HDFS/test_snamenode.py 7214ae7 
  ambari-server/src/test/python/stacks/2.0.6/HDFS/test_snamenode.py 61aa7ad 

Diff: https://reviews.apache.org/r/21630/diff/


Testing
-------

mvn clean test


Thanks,

Andrew Onischuk


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message