Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 01-22-2015 07:59 AM - edited 09-16-2022 02:20 AM
Hi ,
I am using CDH 5.2 on RHEL 6.5
I am trying to install spark in yarn mode in kerberized environment.
But it fails on the 3 rd step when it tries to upload the jars after creating history server and user dir.
+ echo 'Using /var/run/cloudera-scm-agent/process/295-spark_on_yarn-SPARK_YARN_HISTORY_SERVER-SparkUploadJarCommand as conf dir'
+ echo 'Using scripts/control.sh as process script'
+ export COMMON_SCRIPT=/usr/lib64/cmf/service/common/cloudera-config.sh
+ COMMON_SCRIPT=/usr/lib64/cmf/service/common/cloudera-config.sh
+ chmod u+x /var/run/cloudera-scm-agent/process/295-spark_on_yarn-SPARK_YARN_HISTORY_SERVER-SparkUploadJarCommand/scripts/control.sh
+ exec /var/run/cloudera-scm-agent/process/295-spark_on_yarn-SPARK_YARN_HISTORY_SERVER-SparkUploadJarCommand/scripts/control.sh upload_jar
Thu Jan 22 10:41:50 EST 2015
Thu Jan 22 10:41:50 EST 2015: Detected CDH_VERSION of [5]
Thu Jan 22 10:41:50 EST 2015: Uploading Spark assembly jar to '/user/spark/share/lib/spark-assembly.jar' on CDH 5 cluster
+ export SCM_KERBEROS_PRINCIPAL=spark/[email protected]
+ SCM_KERBEROS_PRINCIPAL=spark/[email protected]
+ acquire_kerberos_tgt spark_on_yarn.keytab
+ '[' -z spark_on_yarn.keytab ']'
+ '[' -n spark/[email protected] ']'
+ '[' -d /usr/kerberos/bin ']'
+ which kinit
+ '[' 0 -ne 0 ']'
++ id -u
+ export KRB5CCNAME=/var/run/cloudera-scm-agent/process/295-spark_on_yarn-SPARK_YARN_HISTORY_SERVER-SparkUploadJarCommand/krb5cc_481
+ KRB5CCNAME=/var/run/cloudera-scm-agent/process/295-spark_on_yarn-SPARK_YARN_HISTORY_SERVER-SparkUploadJarCommand/krb5cc_481
+ echo 'using spark/[email protected] as Kerberos principal'
+ echo 'using /var/run/cloudera-scm-agent/process/295-spark_on_yarn-SPARK_YARN_HISTORY_SERVER-SparkUploadJarCommand/krb5cc_481 as Kerberos ticket cache'
+ kinit -c /var/run/cloudera-scm-agent/process/295-spark_on_yarn-SPARK_YARN_HISTORY_SERVER-SparkUploadJarCommand/krb5cc_481 -kt /var/run/cloudera-scm-agent/process/295-spark_on_yarn-SPARK_YARN_HISTORY_SERVER-SparkUploadJarCommand/spark_on_yarn.keytab spark/[email protected]
kinit: Cannot resolve network address for KDC in realm "CDH5.xxx.COM" while getting initial credentials
+ '[' 1 -ne 0 ']'
+ echo 'kinit was not successful.'
+ exit 1
Created 02-03-2015 01:24 PM
I was able to resolve this,
I changed a property in krb5.conf
dns_lookup_kdc=true
I was getting an error in creating KDC initial credentials.By changing this property from false to true i was able to install spark on secure kerberized with sentry cluster.
Created 02-03-2015 01:24 PM
I was able to resolve this,
I changed a property in krb5.conf
dns_lookup_kdc=true
I was getting an error in creating KDC initial credentials.By changing this property from false to true i was able to install spark on secure kerberized with sentry cluster.
Created 02-05-2015 03:22 PM
Thank you for letting us know the solution. 🙂