Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

tHiveInput is not working in batch jobs (spark) in a kerberos cluster.

we are trying to use talend batch (spark) jobs to access hive in a Kerberos cluster but we are getting the below "Can't get Master Kerberos principal for use as renewer" error.

 

By using the standard jobs(non spark) in talend we are able to access hive without any issue.

 

Sample Batch Job:

 

0683p000009Ltq4.png

Below are the observation:

 

  1. When we are running spark jobs talend could able to connect to hive metastore and validating the syntax. ex if I provide the wrong table name it does return "table not found".
  2. when we select count(*) from table where there is no data it returns "NULL" but if some data present in Hdfs(table) It failed with the error "Can't get Master Kerberos principal for use as renewer".

I am not sure exactly what is the issue which is causing the token problem. could some one help us know the root cause.

One more thing to add instead of hive if I read / write to hdfs using spark batch jobs it works , So only problem is with hive and Kerberos.

Labels (1)
12 Replies
Anonymous
Not applicable
Author

@yham

it contains all the site xml's which is required to connect to cluster. Not a key value property. you need to build a proper maven jar and add all the hadoop files.

 

In your talend job add the jar using tLibrary which will add all the config files when its build and deployed. We haven't passed any extraJavaOptions parameter.

yham
Contributor
Contributor

unfortunately this didn't solve our case. i generated a simple jar file with all xmls: 

- core-site.xml

- hdfs-site.xml

- hive-site.xml

- krb5.conf

- mapred-site.xml

- tez-site.xml

- yarn-site.xml

seems that the files was token into account, because i had to delete the python property in core-site.xml that generated an error.

thank you any way 0683p000009MACn.png 

Anonymous
Not applicable
Author

I am also facing the same issue , how did you build ur maven jar. please can you share the solution.