Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hfind compiles, but exeception thrown on execution #3

Closed
nagos1 opened this issue May 19, 2014 · 3 comments
Closed

hfind compiles, but exeception thrown on execution #3

nagos1 opened this issue May 19, 2014 · 3 comments

Comments

@nagos1
Copy link

nagos1 commented May 19, 2014

Hey There Pierre!

Thank you for your hard work on this. We use it quite a bit in our day-to-day hadoop activities. We've recently upgraded from cdh3u3 to cdh4.3.1. I had the exact same issue described in this thread:

#2

After executing the install via override of the hadoop.version parameter, hfind compiles successfully. However, executing hfind after compilation returns this error:

./hfind /user/pierre

Exception in thread "main" java.lang.VerifyError: (class: com/google/common/collect/Interners, method: newWeakInterner signature: ()Lcom/google/common/collect/Interner;) Incompatible argument to function
at org.apache.hadoop.util.StringInterner.(StringInterner.java:48)
at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:1974)
at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:1867)
at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:1785)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:801)
at org.apache.hadoop.conf.Configuration.set(Configuration.java:783)
at com.ning.hfind.config.HdfsConfig.configureHDFSAccess(HdfsConfig.java:20)
at com.ning.hfind.config.HdfsConfig.(HdfsConfig.java:12)
at com.ning.hfind.HdfsAccess.(HdfsAccess.java:27)
at com.ning.hfind.HdfsAccess.get(HdfsAccess.java:20)
at com.ning.hfind.primary.Expression.run(Expression.java:94)
at com.ning.hfind.Find.main(Find.java:151)

What am I doing wrong?

Thanks in advance!

--Nick

@pierre
Copy link
Owner

pierre commented May 20, 2014

Could you try the following patch?

diff --git a/pom.xml b/pom.xml
index c5dbe30..183de55 100644
--- a/pom.xml
+++ b/pom.xml
@@ -42,9 +42,9 @@
             <version>1.1.1</version>
         </dependency>
         <dependency>
-            <groupId>com.google.collections</groupId>
-            <artifactId>google-collections</artifactId>
-            <version>1.0-rc2</version>
+            <groupId>com.google.guava</groupId>
+            <artifactId>guava</artifactId>
+            <version>11.0.2</version>
         </dependency>
         <dependency>
             <groupId>joda-time</groupId>

@Raboo
Copy link

Raboo commented Oct 29, 2014

I had the same issue and it worked for me when i removed this com.google.collections dependency.
But then when trying to use hfind I get another error..
Error crawling HDFS: No FileSystem for scheme: hdfs.
not sure if this is somehow related to removing that dependency?

@pierre
Copy link
Owner

pierre commented Sep 9, 2015

I had the same issue and it worked for me when i removed this com.google.collections dependency.

See also #5.

Error crawling HDFS: No FileSystem for scheme: hdfs.

Can you open a separate issue?

@pierre pierre closed this as completed Sep 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants