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

Using Tez to index data from Hive to Solr gives exceptions #19

Open
theyaa opened this issue Dec 5, 2016 · 3 comments
Open

Using Tez to index data from Hive to Solr gives exceptions #19

theyaa opened this issue Dec 5, 2016 · 3 comments

Comments

@theyaa
Copy link

theyaa commented Dec 5, 2016

I am trying to index large amounts of data from hive to solr and I would like to use Tez, as it is faster. When I run a query to insert data into the Solr managed external table, it works fine but it takes a very long time and eventually times out because of hive.

Trying to use Tez, Tez gives me errors when I try to do anything with the Solr managed table, like select count(*) or insert records in it. I thought it was a file permission issue so I changed the permissions on the solr collection folder so that anyone in the group where solr use is would be able to insert into the table and that also did not work.

Is this a known issue with the hive-solr plugin? or I am missing something?

Thanks for your help.

@acesar
Copy link
Contributor

acesar commented Dec 5, 2016

Tez gives me errors

Please share the stacktrace, also the version of Tez, hive and Solr.

@theyaa
Copy link
Author

theyaa commented Dec 5, 2016

HIVE: 1.2.1
Tez: 0.8.1.alpha
Solr: 5.1

I can't find the stack trace, do not know where it is. I went to ambari-yarn, and looked into the resource manager and I could not find any logs for the application in question.

The only error I get is : FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.tez.TezTask.

Thanks

@geojsg
Copy link

geojsg commented Dec 7, 2017

Have you managed finally ?
I got same issue, switched Hive from Tez to MapReduce and got a more "verbose" error:

java.sql.SQLException: Error while processing statement: FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.mr.MapRedTask. Error caching map.xml: org.apache.hive.com.esotericsoftware.kryo.KryoException: java.lang.IllegalArgumentException: Unable to create serializer "org.apache.hive.com.esotericsoftware.kryo.serializers.FieldSerializer" for class: com.lucidworks.hadoop.hive.LWHiveOutputFormat Serialization trace: outputFileFormatClass (org.apache.hadoop.hive.ql.plan.TableDesc) tableInfo (org.apache.hadoop.hive.ql.plan.FileSinkDesc) conf (org.apache.hadoop.hive.ql.exec.FileSinkOperator) childOperators (org.apache.hadoop.hive.ql.exec.SelectOperator) childOperators (org.apache.hadoop.hive.ql.exec.TableScanOperator) aliasToWork (org.apache.hadoop.hive.ql.plan.MapWork)

Any support would be welcome !

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