当我尝试将我的图像从本地文件目录(.jpg)导出到hdfs(.hib)时,我已经安装了hadoop 2.7.1和gardle 3.1我得到了这个异常...请帮忙
下面是命令:
hduser@nandhinilk-Inspiron-3558:/home/nandhinilk/hipi/tools$ ./hibImport.sh /home/nandhinilk/Desktop/sample -f sample.hib
Input FS: local FS
Output HIB: sample.hib
Overwrite HIB if it exists: true
Exception in thread "main" java.lang.NoSuchMethodError: org.hipi.imagebundle.HipiImageBundle.<init>(Lorg/apache/hadoop/fs/Path;Lorg/apache/hadoop/conf/Configuration;)V
at org.hipi.tools.HibImport.main(HibImport.java:124)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
答案 0 :(得分:0)
尝试执行命令而不在hibImport中包含-f。因为通过使用-f,它将在hadoop文件系统中搜索,而不是在本地目录中。
>