-
Notifications
You must be signed in to change notification settings - Fork 33
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
metadata exception #20
Comments
could you post the full exception stack? |
Both SELECT and INSERT OVERWRITE generate the NumberFormatException: null.
CREATE EXTERNAL TABLE wlslog_mongo(id string,CATEGORY string,TYPE string, SERVERNAME string,CODE string,MSG string)
hive> INSERT OVERWRITE TABLE wls_mongo SELECT time_stamp,category,type,servername,code,msg FROM wlslog; Task failed! Logs: /tmp/root/hive.log |
according to the exception stack, the NumberFormatException is thrown when parsing the mongo db port: this.db = new Mongo(host, Integer.valueOf(port)).getDB(dbName);and it seems that the port specified in the tblproperties was not read properly (the seen value is null). Pls make sure there are no abnormal character in the create table sql; and you could also try with latest stable version of hive (I tried Hive 1.2.1 and it works for me). If it's not resolved, maybe we need to add some verbose log to help to identify the problem. |
A SELECT query on a Hive table stored By MongoDb storage handler generates
org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.NumberFormatException: null
The text was updated successfully, but these errors were encountered: