Thank you very much. your have given me effective method. just do [jack@localhost hypertable-master_src_0.9.7.8_modify_offset-limit]$ cmake CMakeLists.txt [jack@localhost hypertable-master_src_0.9.7.8_modify_offset-limit]$ make java
I got what i want to. ps: after cmake CMakeLists.txt you will find two files created. -rw-rw-r--. 1 jack jack 6816 Dec 12 18:09 build1.xml -rw-rw-r--. 1 jack jack 6816 Dec 12 18:09 build2.xml build1.xml for cdh3 and build2.xml for cdh4. thanks again. 在 2013年12月13日星期五UTC+8上午9时39分13秒,Doug Judd写道: > > I recommend using the latest version of the source code. There have been > many critical bugs fixed since the 0.9.7.8 release. To get the hypertable > .jar file to build use cmake. Once you've configured your build directory > with cmake, you can build the hypertable .jar files with: > > make java > > > > On Thu, Dec 12, 2013 at 5:28 PM, Xy Zheng <[email protected]<javascript:> > > wrote: > >> Hi Doug: >> >> when I compile hypertable-0.9.7.8.jar, the error arised as follows: >> >> Buildfile: build.xml >> >> prepare: >> [mkdir] Created dir: >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/build/cdh4/cdh4/classe4 >> >> compile: >> [javac] Compiling 24 source files to >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/build/cdh4/cdh4/classe4 >> [javac] Note: Some input files use unchecked or unsafe operations. >> [javac] Note: Recompile with -Xlint:unchecked for details. >> [javac] Compiling 5 source files to >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/build/cdh4/cdh4/classe4 >> [javac] Compiling 72 source files to >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/build/cdh4/cdh4/classe4 >> [javac] >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/src/java/Core/org/hypertable/DfsBroker/hadoop/2/HadoopBroker.java:53: >> >> duplicate class: org.hypertable.DfsBroker.hadoop.HadoopBroker >> [javac] public class HadoopBroker { >> [javac] ^ >> [javac] >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/src/java/Core/org/hypertable/DfsBroker/hadoop/2/main.java:41: >> >> duplicate class: org.hypertable.DfsBroker.hadoop.main >> [javac] public class main { >> [javac] ^ >> [javac] >> org/apache/hadoop/fs/FileSystem.class(org/apache/hadoop/fs:FileSystem.class): >> >> warning: Cannot find annotation method 'value()' in type >> 'org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate': class >> file for org.apache.hadoop.classification.InterfaceAudience not found >> [javac] >> org/apache/hadoop/fs/FileSystem.class(org/apache/hadoop/fs:FileSystem.class): >> >> warning: Cannot find annotation method 'value()' in type >> 'org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate' >> [javac] >> org/apache/hadoop/fs/FileSystem.class(org/apache/hadoop/fs:FileSystem.class): >> >> warning: Cannot find annotation method 'value()' in type >> 'org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate' >> [javac] >> org/apache/hadoop/fs/FSDataInputStream.class(org/apache/hadoop/fs:FSDataInputStream.class): >> >> warning: Cannot find annotation method 'value()' in type >> 'org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate' >> [javac] >> org/apache/hadoop/fs/Path.class(org/apache/hadoop/fs:Path.class): warning: >> Cannot find annotation method 'value()' in type >> 'org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate' >> [javac] >> org/apache/hadoop/hdfs/DFSClient.class(org/apache/hadoop/hdfs:DFSClient.class): >> >> warning: Cannot find annotation method 'value()' in type >> 'org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate' >> [javac] >> org/apache/hadoop/fs/FSDataOutputStream.class(org/apache/hadoop/fs:FSDataOutputStream.class): >> >> warning: Cannot find annotation method 'value()' in type >> 'org.apache.hadoop.classification.InterfaceAudience.LimitedPrivate' >> [javac] >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/src/java/Core/org/hypertable/DfsBroker/hadoop/1/HadoopBroker.java:347: >> >> warning: [deprecation] getDefaultReplication() in >> org.apache.hadoop.fs.FileSystem has been deprecated >> [javac] mFilesystem.getDefaultReplication()); >> [javac] ^ >> [javac] >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/src/java/Core/org/hypertable/DfsBroker/hadoop/1/HadoopBroker.java:353: >> >> warning: [deprecation] getDefaultBlockSize() in >> org.apache.hadoop.fs.FileSystem has been deprecated >> [javac] blockSize = mFilesystem.getDefaultBlockSize(); >> [javac] ^ >> [javac] >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/src/java/Core/org/hypertable/DfsBroker/hadoop/1/HadoopBroker.java:399: >> >> warning: [deprecation] org.apache.hadoop.hdfs.DFSClient.DFSDataInputStream >> in org.apache.hadoop.hdfs.DFSClient has been deprecated >> [javac] DFSClient.DFSDataInputStream in = >> [javac] ^ >> [javac] >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/src/java/Core/org/hypertable/DfsBroker/hadoop/1/HadoopBroker.java:400: >> >> warning: [deprecation] org.apache.hadoop.hdfs.DFSClient.DFSDataInputStream >> in org.apache.hadoop.hdfs.DFSClient has been deprecated >> [javac] >> (DFSClient.DFSDataInputStream)mFilesystem.open(path); >> [javac] ^ >> [javac] >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/src/java/Core/org/hypertable/DfsBroker/hadoop/1/HadoopBroker.java:537: >> >> warning: [deprecation] sync() in org.apache.hadoop.fs.FSDataOutputStream >> has been deprecated >> [javac] ofd.os.sync(); >> [javac] ^ >> [javac] >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/src/java/Core/org/hypertable/DfsBroker/hadoop/1/HadoopBroker.java:727: >> >> warning: [deprecation] sync() in org.apache.hadoop.fs.FSDataOutputStream >> has been deprecated >> [javac] ofd.os.sync(); >> [javac] ^ >> [javac] 2 errors >> [javac] 13 warnings >> >> BUILD FAILED >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit/build.xml:104: >> >> Compile failed; see the compiler error output for details. >> >> Total time: 23 seconds >> [jack@localhost hypertable-master_src_0.9.7.8_modify_offset-limit]$ >> ^ >> all operations I did as follows: >> [jack@localhost hypertable-master_src_0.9.7.8_modify_offset-limit]$ pwd >> /home/jack/Downloads/hypertable-master_src_0.9.7.8_modify_offset-limit >> [jack@localhost hypertable-master_src_0.9.7.8_modify_offset-limit]$ vim >> build.xml >> >> i have modified build.xml file just changed line 1,17,22,23 as follows: >> 1 <project name="hypertable" default="compile" basedir="."> >> 17 <property name="src.lib.distro.dir" value="${basedir}/lib/cdh4"/> >> 22 <property name="build.dir" value="${basedir}/build/cdh4"/> >> 23 <property name="build.classes" value="${build.dir}/cdh4/classe4"/> >> >> then >> [jack@localhost hypertable-master_src_0.9.7.8_modify_offset-limit]$ ant >> error arised as mentioned before. >> >> why? how can I resolve it. thank you for giving any advice. >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Hypertable Development" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected] <javascript:>. >> To post to this group, send email to [email protected]<javascript:> >> . >> Visit this group at http://groups.google.com/group/hypertable-dev. >> For more options, visit https://groups.google.com/groups/opt_out. >> > > > > -- > Doug Judd > CEO, Hypertable Inc. > -- You received this message because you are subscribed to the Google Groups "Hypertable Development" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/hypertable-dev. For more options, visit https://groups.google.com/groups/opt_out.
