How to generate kerberos keytabs

For AD accounts 1.From shell #ktutil 2. Add an entry as below ktutil:addent -password  -p username@realm.com -k 1 -e RC4-HMAC ktutil:wkt  username.keytab ktutil:q For FeeIPA accounts Use the below command #ipa-getkeytab -s ipa.host.com -p username@realm.com  --keytab=username.keytab --password Try kinit using the keytab as below #kinit username@realm.com -k -t username.keytab Note: Change the username  accordingly.

Advertisements

Crontab not working for kerberized hadoop

ISSUE:- Cronjobs not working for kerberos enabled hadoop. Throwing below error. ERROR tool.ImportTool: Encountered IOException running import job: java.io.IOException: Failed on local exception: java.io.IOException: javax.security.sasl.SaslException: GSS initiate failed [Caused by GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos tgt)];   Solution:- This is because there is no TTY, Profile setup for the … Continue reading Crontab not working for kerberized hadoop

How To Install Apache Tomcat 8 on CentOS 7

1.Install JAVA #yum install java-1.7.0-openjdk-devel 2.Install tomcat We are going to install Tomcat in  /usr/local #cd /usr/local #wget http://apache.mirrors.ionfish.org/tomcat/tomcat-8/v8.5.9/bin/apache-tomcat-8.5.9.tar.gz #tar zxvf apache-tomcat-8.5.9.tar.gz 3.  Start tomcat #cd /usr/local/apache-tomcat-8.5.9/bin #./startup.sh 4. Check the Tomcat web UI with http://server_IP_address:8080 5. Configure Tomcat Web Management Interface by adding the user as below Open the conf file #vi /usr/local/apache-tomcat/conf/tomcat-users.xml add the below entry … Continue reading How To Install Apache Tomcat 8 on CentOS 7