hadoop - RDD to HDFS - authentication error - RetryInvocationHandler -
i have rdd wish write hdfs.
data.saveastextfile("hdfs://path/vertices")
this returns: warn retryinvocationhandler: exception while invoking clientnamenodeprotocoltranslatorpb.getfileinfo on null. not retrying because try once , fail. org.apache.hadoop.ipc.remoteexception(org.apache.hadoop.security.accesscontrolexception): simple authentication not enabled. available:[token, kerberos]
i have checked kerberos , authenticated.
how solve this?
well,
you need check path /etc/security/keytabs , check if spark keytab there.
this path recommended kerberos configuration. maybe can in other path.
but important, keytab should in workers machines in same path.
other thing can check configuration file of spark should installed in:
spark_home/conf this folder should have spark conf file spark-defaults.conf conf file need have stuffs:
spark.history.kerberos.enabled true spark.history.kerberos.keytab /etc/security/keytabs/spark.keytab spark.history.kerberos.principal user@domain.local
Comments
Post a Comment