Skip to main content

Posts

What is PAM?

 

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 ...

Enable centrify authentication in SAS

To enable centrify authentication in sas. 1. Go to /etc/pam.d 2. Edit sasauth file and search for methods. By default it should only have pw. Add pam to it. It should look like below methods=pw pam Also do the same changes in sasauth.conf file: 1. Go to <SASHOME>/SASFoundation/9.4/utilities/bin 2. Backup sasauth.conf 3. Edit sasauth.conf file and search for methods. By default it should only have pw. Add pam to it. It should look like below methods=pam Then do proc permtest proc permtest; run;

Starting Gemfire in SAS

Gemfire is available in both Compute and Mid. The default port is 41415. If you have many gemfire, you may have port numbers incremented by 1, for example: 41416. Gemfire is located under Web. <SASCONFIG>/Web/gemfire. To Start: <SASCONFIG>/Web/gemfire/instances/ins_41415/gemfire-locator.sh start To check Status: <SASCONFIG>/Web/gemfire/instances/ins_41415/gemfire-locator.sh status To stop: <SASCONFIG>/Web/gemfire/instances/ins_41415/gemfire-locator.sh stop If it doesn;t start check port number is occupied by any other process. lsof -i tcp:41415 If you only have one instance then 41415 will be default. If you have Lev2 then it will be 41416

SASServer1_1 not coming up

WARN  com.sas.svcs.cluster.httpinvoker.AutoDiscoveredHttpService - Have received 80 failures while trying to access an auto-discoverable service to satisfy request for 'com.sas.svcs.config.client.ConfigurationServiceInterface'. Please ensure that the application and/or process surfacing this interface is still in the process of starting. It can happen if the SAS Agent service is running. First stop this service and start mid-tier and then start the Agent.  To stop agent use below command <SAS HOME>/SASDeploymentAgent/9.4/agent.sh stop