Hi Margus, Thanks for reporting this issue, Chen has just fixed it. I will commit this change as soon as we get a Jenkins run.
https://issues.apache.org/jira/browse/HDFS-11386 if you can watch that JIRA and pull when it is committed, it will make it easier for you. Thanks Anu On 2/2/17, 1:00 PM, "Chen Liang" <cli...@hortonworks.com> wrote: >Hi Margus, > >It looks like there might have been some error when merging trunk into >HDFS-7240, which mistakenly changed some entries in hdfs script. Thanks for >the catch! > >We will update the branch to fix it. In the meantime, as a quick fix, you can >apply the attached patch file and re-compile, OR do the following manually: > >1. open hadoop-hdfs-project/hadoop-hdfs/src/main/bin/hdfs >2. between >oiv_legacy) > > HADOOP_CLASSNAME=org.apache.hadoop.hdfs.tools.offlineImageViewer.OfflineImageViewer > ;; > and >portmap) > HADOOP_SUBCMD_SUPPORTDAEMONIZATION="true" > HADOOP_CLASSNAME=org.apache.hadoop.portmap.Portmap > ;; >add >oz) > HADOOP_CLASSNAME=org.apache.hadoop.ozone.web.ozShell.Shell >;; >3. change this line >CLASS='org.apache.hadoop.ozone.storage.StorageContainerManager' >to >HADOOP_CLASSNAME='org.apache.hadoop.ozone.storage.StorageContainerManager' >4. re-compile. > >Please let me know if this does not work for you. > >Thanks! >Chen > >________________________________________ >From: Margus Roo <mar...@roo.ee> >Sent: Thursday, February 02, 2017 10:06 AM >To: hdfs-dev@hadoop.apache.org >Subject: ERROR: oz is not COMMAND nor fully qualified CLASSNAME > >Hi > >Downloaded and compiled ozone as described >https://wiki.apache.org/hadoop/Ozone > >Version: 3.0.0-alpha2-SNAPSHOT, >rffe937a1f295398ed0e0606b00566f41129f157c >Compiled: Wed Feb 01 17:38:00 +0200 2017 by ozone from HDFS-7240 > >hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/bin/hdfs shows that >there are arguments: >... >oz command line interface for ozone >... >scm run the Storage Container Manager service > >But if I'll try to use them I am getting >[ozone@bigdata24 hadoop-3.0.0-alpha2-SNAPSHOT]$ bin/hdfs oz >ERROR: oz is not COMMAND nor fully qualified CLASSNAME. > >[ozone@bigdata24 hadoop-3.0.0-alpha2-SNAPSHOT]$ bin/hdfs scm >Error: Could not find or load main class > >[ozone@bigdata24 hadoop-3.0.0-alpha2-SNAPSHOT]$ bin/hdfs classpath >/home/ozone/hadoop_ozone/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/etc/hadoop:/home/ozone/hadoop_ozone/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/share/hadoop/common/lib/*:/home/ozone/hadoop_ozone/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/share/hadoop/common/*:/home/ozone/hadoop_ozone/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/share/hadoop/hdfs:/home/ozone/hadoop_ozone/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/share/hadoop/hdfs/lib/*:/home/ozone/hadoop_ozone/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/share/hadoop/hdfs/*:/home/ozone/hadoop_ozone/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/share/hadoop/mapreduce/*:/home/ozone/hadoop_ozone/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/share/hadoop/yarn/lib/*:/home/ozone/hadoop_ozone/hadoop-dist/target/hadoop-3.0.0-alpha2-SNAPSHOT/share/hadoop/yarn/* > >hints? > >-- >Margus (margusja) Roo >http://margus.roo.ee >skype: margusja >https://www.facebook.com/allan.tuuring >+372 51 48 780 > >