[jira] [Commented] (HDFS-2674) hdfs script does not work out of the box.
[ https://issues.apache.org/jira/browse/HDFS-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13210979#comment-13210979 ] Steve Loughran commented on HDFS-2674: -- -failing test is (clearly) independent. -patch needs review by someone who understands the scripts hdfs script does not work out of the box. - Key: HDFS-2674 URL: https://issues.apache.org/jira/browse/HDFS-2674 Project: Hadoop HDFS Issue Type: Bug Reporter: Ivan Kelly Assignee: Ivan Kelly Priority: Critical Fix For: 0.24.0 Attachments: HDFS-2674.diff As the title says, hadoop-config.sh doesn't add the hadoop-common jars, which makes the hdfs script fail. To repro, follow the instructions from http://wiki.apache.org/hadoop/HowToSetupYourDevelopmentEnvironment {code} ivank@spokegrown-lm ~/src/hadoop-common Tue Dec 13 19:14:24 [0 jobs] [hist 1889] $ export HADOOP_COMMON_HOME=$(pwd)/$(ls -d hadoop-common-project/hadoop-common/target/hadoop-common-*-SNAPSHOT) ivank@spokegrown-lm ~/src/hadoop-common Tue Dec 13 19:14:29 [0 jobs] [hist 1890] $ export HADOOP_HDFS_HOME=$(pwd)/$(ls -d hadoop-hdfs-project/hadoop-hdfs/target/hadoop-hdfs-*-SNAPSHOT) ivank@spokegrown-lm ~/src/hadoop-common Tue Dec 13 19:14:36 [0 jobs] [hist 1891] $ export PATH=$HADOOP_COMMON_HOME/bin:$HADOOP_HDFS_HOME/bin:$PATH ivank@spokegrown-lm ~/src/hadoop-common Tue Dec 13 19:14:42 [0 jobs] [hist 1892] $ cat $HADOOP_COMMON_HOME/etc/hadoop/core-site.xml EOF ?xml version=1.0?!-- core-site.xml -- configuration property namefs.default.name/name valuehdfs://localhost//value /property /configuration EOF ivank@spokegrown-lm ~/src/hadoop-common Tue Dec 13 19:14:51 [0 jobs] [hist 1893] $ hdfs namenode -format Exception in thread main java.lang.NoClassDefFoundError: org/apache/hadoop/HadoopIllegalArgumentException Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.HadoopIllegalArgumentException at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] [Commented] (HDFS-2674) hdfs script does not work out of the box.
[ https://issues.apache.org/jira/browse/HDFS-2674?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanelfocusedCommentId=13168801#comment-13168801 ] Hadoop QA commented on HDFS-2674: - -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12507221/HDFS-2674.diff against trunk revision . +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. -1 javadoc. The javadoc tool appears to have generated 90 warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. -1 eclipse:eclipse. The patch failed to build with eclipse:eclipse. -1 findbugs. The patch appears to introduce 13 new Findbugs (version 1.3.9) warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. -1 core tests. The patch failed these unit tests: org.apache.hadoop.hdfs.server.common.TestDistributedUpgrade +1 contrib tests. The patch passed contrib unit tests. Test results: https://builds.apache.org/job/PreCommit-HDFS-Build/1706//testReport/ Findbugs warnings: https://builds.apache.org/job/PreCommit-HDFS-Build/1706//artifact/trunk/hadoop-hdfs-project/patchprocess/newPatchFindbugsWarningshadoop-hdfs.html Findbugs warnings: https://builds.apache.org/job/PreCommit-HDFS-Build/1706//artifact/trunk/hadoop-hdfs-project/patchprocess/newPatchFindbugsWarningshadoop-hdfs-httpfs.html Console output: https://builds.apache.org/job/PreCommit-HDFS-Build/1706//console This message is automatically generated. hdfs script does not work out of the box. - Key: HDFS-2674 URL: https://issues.apache.org/jira/browse/HDFS-2674 Project: Hadoop HDFS Issue Type: Bug Reporter: Ivan Kelly Assignee: Ivan Kelly Priority: Critical Fix For: 0.24.0 Attachments: HDFS-2674.diff As the title says, hadoop-config.sh doesn't add the hadoop-common jars, which makes the hdfs script fail. To repro, follow the instructions from http://wiki.apache.org/hadoop/HowToSetupYourDevelopmentEnvironment {code} ivank@spokegrown-lm ~/src/hadoop-common Tue Dec 13 19:14:24 [0 jobs] [hist 1889] $ export HADOOP_COMMON_HOME=$(pwd)/$(ls -d hadoop-common-project/hadoop-common/target/hadoop-common-*-SNAPSHOT) ivank@spokegrown-lm ~/src/hadoop-common Tue Dec 13 19:14:29 [0 jobs] [hist 1890] $ export HADOOP_HDFS_HOME=$(pwd)/$(ls -d hadoop-hdfs-project/hadoop-hdfs/target/hadoop-hdfs-*-SNAPSHOT) ivank@spokegrown-lm ~/src/hadoop-common Tue Dec 13 19:14:36 [0 jobs] [hist 1891] $ export PATH=$HADOOP_COMMON_HOME/bin:$HADOOP_HDFS_HOME/bin:$PATH ivank@spokegrown-lm ~/src/hadoop-common Tue Dec 13 19:14:42 [0 jobs] [hist 1892] $ cat $HADOOP_COMMON_HOME/etc/hadoop/core-site.xml EOF ?xml version=1.0?!-- core-site.xml -- configuration property namefs.default.name/name valuehdfs://localhost//value /property /configuration EOF ivank@spokegrown-lm ~/src/hadoop-common Tue Dec 13 19:14:51 [0 jobs] [hist 1893] $ hdfs namenode -format Exception in thread main java.lang.NoClassDefFoundError: org/apache/hadoop/HadoopIllegalArgumentException Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.HadoopIllegalArgumentException at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira