Skip to main content

Posts

Showing posts from June, 2020

Kerberos implementation SAS for Hive Connection

Kerberos steps: Get the keytab file for the user which you are using to connect to Hadoop. For example: if hive is the user name then AD team will provide keytab file for it. 1.     Installation of required packages krb5-workstation krb5-auth-dialog Keytab file will be used to generate ticket: kinit -k -t hive.keytab hive@ZONE.BLOG.NET Use the proper  krb5.conf , by default will be /etc but get it from right team Possible Errors: kinit: Included profile directory could not be read while initializing Kerberos 5 library – This means the krb5.conf file we are using wrong. 1.     Add Kerberos changes to sasenv_local File Location -> /opt/SASHome/SASFoundation/9.4/bin workspace_user=$(whoami) export KRB5_CONFIG=/etc/krb5.conf export KRB5_KTNAME=/home/$workspace_user/kerb_files/hive.keytab /usr/bin/kinit -k -t /home/$workspace_user/kerb_files/hive.keytab hive@ZONE.BLOG.NET workspace_user=$(whoami) workspace_user_ccaches=$(find /tmp -maxdept...

Metadata Server Not coming up - The tcpSockRead call failed.

When starting Metadata Server you may notice below error: Problem: Starting SAS servers SAS Metadata Server 1 is NOT up The remaining SAS servers will NOT be started as a result. Error In Log: 20200131:17.23.22.01: 01497597:ERROR: The tcpSockRead call failed. The system error is 'The connection has timed out 20200120:23.38.26.16: 18196033:NOTE: The tcpSockRead call failed. The system error is 'The connection was reset 20200131:17.23.22.01: 01497597:ERROR: The tcpSockRead call failed. The system error is 'The connection has ti 20200206:19.31.32.76: 03818864:ERROR: The tcpSockRead call failed. The system error is 'The connection has ti 20200210:12.14.09.18: 05282412:ERROR: The tcpSockRead call failed. The system error is 'The connection has ti 20200211:17.18.58.90: 07472662:NOTE: The tcpSockRead call failed. The system error is 'The connection was res 20200211:19.15.55.29: 07945643:ERROR: The tcpSockRead call failed. The system error is 'The connection has ti ...