【问题标题】:Couldn't able to run the mapreduce program on HIPI Hadoop Image processing interface?无法在 HIPI Hadoop 图像处理接口上运行 mapreduce 程序?
【发布时间】:2015-03-25 23:27:08
【问题描述】:

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

下载者:

设置:

测试设置:

compile: [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] 导入 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] 符号:类 HipiImageBundle [javac] 位置:类 DownloaderMapper [javac] /home/sam/hipi_1/examples/hipi/examples/downloader/Downloader.java:61:错误:找不到符号 [javac] HipiImageBundle hib = new HipiImageBundle(new Path(temp_path), conf);

【问题讨论】:

    标签: hadoop


    【解决方案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>
    

    祝你好运

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-08-20
      • 2013-08-27
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多