无法在HIPI Hadoop图像处理界面上运行mapreduce程序?

时间:2015-03-22 06:54:28

标签: hadoop

我正在尝试将hipi安装到hadoop上,安装后当我尝试使用命令ant downloader运行下载程序时,出现以下错误。

下载:

设置:

test_settings:

编译:[javac]将3个源文件编译到/ home / sam / hipi_1 / bin [javac] /home/sam/hipi_1/examples/hipi/examples/downloader/Downloader.java:3:error:package hipi。 image.ImageHeader不存在[javac] import hipi.image.ImageHeader.ImageType; [javac] ^ [javac] /home/sam/hipi_1/examples/hipi/examples/downloader/Downloader.java:4:错误:包hipi.imagebundle不存在[javac] import hipi.imagebundle.HipiImageBundle; [javac] ^ [javac] /home/sam/hipi_1/examples/hipi/examples/downloader/Downloader.java:61:错误:找不到符号[javac] HipiImageBundle hib = new HipiImageBundle(new Path(temp_path),conf) ; [javac] ^ [javac] symbol:class HipiImageBundle [javac] location:class DownloaderMapper [javac] /home/sam/hipi_1/examples/hipi/examples/downloader/Downloader.java:61:error:找不到符号[javac] HipiImageBundle hib = new HipiImageBundle(new Path(temp_path),conf);

1 个答案:

答案 0 :(得分:1)

首先下载HIPI Library Release 0.1.0并放入HIPI的主目录,然后在HIPI的主目录中找到build.xml并更改:

<target name="compile" depends="setup, test_settings">
<mkdir dir="bin" />
<!-- Compile -->
<javac nowarn="on" includeantruntime="no" srcdir="${srcdir}" destdir="./bin" classpath="${hadoop.classpath}:./src/hipi.jar" />
<!-- Create the jar -->
<jar destfile="${jardir}/${jarfilename}" basedir="./bin">
  <zipfileset src="./src/hipi.jar" />
  <manifest>
    <attribute name="Main-Class" value="${mainclass}" />
  </manifest>
</jar>

为:

<target name="compile" depends="setup, test_settings">
<mkdir dir="bin" />
<!-- Compile -->
<javac nowarn="on" includeantruntime="no" srcdir="${srcdir}" destdir="./bin" classpath="${hadoop.classpath}:hipi-0.1.0.jar" />
<!-- Create the jar -->
<jar destfile="${jardir}/${jarfilename}" basedir="./bin">
  <zipfileset src="hipi-0.1.0.jar" />
  <manifest>
    <attribute name="Main-Class" value="${mainclass}" />
  </manifest>
</jar>

祝你好运