[jira] [Updated] (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:all-tabpanel ] Harsh J updated HDFS-2674: -- Resolution: Cannot Reproduce Fix Version/s: (was: 0.24.0) Status: Resolved (was: Patch Available) I can't reproduce your error on trunk/2.x anymore. This was probably fixed elsewhere, but thank you for the patch! Resolving as Can't Reproduce (anymore). Thanks again Ivan and Steve. > 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 > 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 > > > > > > > > fs.default.name > > hdfs://localhost/ > > > > > > 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] [Updated] (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:all-tabpanel ] Ivan Kelly updated HDFS-2674: - Status: Patch Available (was: Open) > 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 > > > > > > > > fs.default.name > > hdfs://localhost/ > > > > > > 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] [Updated] (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:all-tabpanel ] Ivan Kelly updated HDFS-2674: - Attachment: HDFS-2674.diff Fix is simple, hdfs-config.sh was setting HADOOP_PREFIX, while it shouldn't be. Looks like this came in with HADOOP-7801. Before this, the setting of HADOOP_PREFIX had no effect. > 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 > > > > > > > > fs.default.name > > hdfs://localhost/ > > > > > > 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