hadoop - Spark 1.6.Token can be issued only with kerberos or web authentication -


i call kinit keytab right before spark-submit in shell driver script. thing is, working itself, when call shell driver scrip through oozie, got error:

stdoutput py4j.protocol.py4jjavaerror: error occurred while calling  o49.saveastextfile. stdoutput : org.apache.hadoop.ipc.remoteexception(java.io.ioexception):  delegation token can issued kerberos or web authentication 

the issue here

file.coalesce(1,true).saveastextfile(fqdnofhadoop+output)  

edit: in script is: kinit -k -t /home/me/me.keytab me@domain.had

edit: working solution:

i used

spark-submit --principal 'me@domain.had' \ --keytab '/home/me/me.keytab' \  

and execution of pyspark script in oozie worked no error (even writing hive table , on). log4j logger didn't work (with standalone scripts does), @ least print() (stdout yarn logs) yes ...

thx


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -