Comments (7)
I check the source code of Hive 0.14, there do have a getReadColumnIDs
method in ColumnProjectionUtils...
Will download a 0.14 release and try it myself...
On Friday, November 21, 2014, divyanagarajan [email protected]
wrote:
Hi,
Iam Currently Working on Hive0.14 - MonogDB 2.6.3, as per the steps I
builded successfully and copied
hive-mongo-0.0.3.jar,guava-r06.jar,mongo-2.6.3.jar into hive_home/lib
directory and also in hadoop_home/share/hadoop/mapred,hdfs,yarn (Hadoop
2.4). I created sample external hive-mongostorage table (TBL NAME :
mongodb_archives) and then i insert overwrite into hive-mongostorage table
,its sending data into mongodbs collection and also i could query inserted
data in collection the problem is when ever i query hive-mongostorage table
i get this execption.
hive> select * from mongodb_archives;
OK
Exception in thread "main" java.lang.NoSuchMethodError:
org.apache.hadoop.hive.serde2.ColumnProjectionUtils.getReadColumnIDs(Lorg/apache/hadoop/conf/Configuration;)Ljava/util/ArrayList;
at
org.yong3.hive.mongo.MongoInputFormat.getRecordReader(MongoInputFormat.java:39)
at
org.apache.hadoop.hive.ql.exec.FetchOperator.getRecordReader(FetchOperator.java:498)
at
org.apache.hadoop.hive.ql.exec.FetchOperator.getNextRow(FetchOperator.java:588)
at
org.apache.hadoop.hive.ql.exec.FetchOperator.pushRow(FetchOperator.java:561)
at org.apache.hadoop.hive.ql.exec.FetchTask.fetch(FetchTask.java:138)
at org.apache.hadoop.hive.ql.Driver.getResults(Driver.java:1621)
at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:267)
at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:199)
at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:410)
at org.apache.hadoop.hive.cli.CliDriver.executeDriver(CliDriver.java:783)
at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:677)
at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:616)
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.main(RunJar.java:212)
[hadoop@hadoop ~]$
This exception made hive to drop out of cli
Please help me out in this issueThanks,
Divya N—
Reply to this email directly or view it on GitHub
#17.
from hive-mongo.
Hi ,
Thanks for your reply , please let me know when you have tested.
Thanks,
from hive-mongo.
Since hive 0.13.0 release, the return type of ColumnProjectionUtils.getReadColumnIDs changed from ArrayList to List, that why this failed.
So just change the version of referenced hive related jars in pom.xml to the same as your Hive's and rebuild should fix this issue.
from hive-mongo.
pls have a try with the new 0.0.4 build under release directory, thanks
from hive-mongo.
Hi,
I tried out with latest release and builded successfully , iam getting same error .
Thanks
from hive-mongo.
I guess you do not perform mvn clean before rebuild this project... you might try my build, which you could get under /release directory.
from hive-mongo.
Hi,
I done "mvn clean" and rebuilded the project as you said. Now its working fine with out error and i could query table in hive and see the data.Thanks for your reply,its helps me a lot.
Thanks
Divya N
from hive-mongo.
Related Issues (18)
- Exception HOT 2
- java.lang.NoSuchMethodError: org.apache.hadoop.hive.serde2.SerDeUtils.hasAnyNullObject HOT 7
- Is there any plan to add support for username password? HOT 5
- Additional data types to be added? HOT 2
- java.lang.AbstractMethodError in 'insert into' while using org.yong3.hive.mongo.MongoStorageHandler.configureJobConf HOT 2
- Error:org.apache.hadoop.hive.serde2.ColumnProjectionUtils.getReadColumnIDs(Lorg/apache/hadoop/conf/Configuration;)Ljava/util/ArrayList HOT 3
- Exception in thread "main" java.lang.NoSuchMethodError: HOT 3
- org.yong3.hive.mongo.MongoStorageHandler class not found HOT 3
- metadata exception HOT 3
- Exception in thread "main" java.lang.NoSuchMethodError: com.mongodb.DB.authenticate(Ljava/lang/String;[C)Z
- How do I compile? HOT 5
- Feature Request: read bson data directly from dbpath (without mongod running) HOT 4
- Error in loading storage handler.org.yong3.hive.mongo.MongoStorageHandler HOT 4
- Compile and Install HOT 1
- Error in metadata: java.lang.NullPointerException HOT 7
- Joining to Hive Data? HOT 2
- More conversation about hive-mongo
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hive-mongo.