Member since
06-20-2016
308
Posts
103
Kudos Received
29
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1957 | 09-19-2018 06:31 PM | |
1442 | 09-13-2018 09:33 PM | |
1414 | 09-04-2018 05:29 PM | |
4418 | 08-27-2018 04:33 PM | |
3485 | 08-22-2018 07:46 PM |
02-26-2017
06:19 PM
@rahul gulati This script/path comes with Ambari-server . if does not exist you can copy that path/files from other setup. these are static files and can be copied to/from every place.
... View more
02-26-2017
06:17 PM
@rahul gulati I thought I have covered all the steps in the article. The only different for self signed and CA signed is STEP1 - so both mentioned there. for CA signed cert CA signing would provide you their root CA so that it can trust all their certs
... View more
02-26-2017
05:54 PM
@rahul gulati For self signed cert - in step1 I have mentioned a block "If it is self signed cert" to create the cert. you need to create 2 different certs/keystore files for each Namenode. remaining steps you will be configuring at the service level - so number of nodes does not matter. For example: In NN1 host:
keytool -genkey -keyalg RSA -alias NNHOST1 -keystore /tmp/keystore.jks -storepass bigdata -validity 360-keysize 2048 In NN2 host:
keytool -genkey -keyalg RSA -alias NNHOST2 -keystore /tmp/keystore.jks -storepass bigdata -validity 360-keysize 2048 Create common trustore. Run In NN1 HOST: keytool -v -importkeystore -srckeystore /tmp/keystore.jks -srcalias NNHOST1 -destkeystore truststore.jks Now copy above create Truststore to NN2 HOST keytool -v -importkeystore -srckeystore /tmp/keystore.jks -srcalias NNHOST2 -destkeystore truststore.jks Now truststore has both certs - so copy this truststore to all the nodes (including NN1 host as well). configure the truststore path as mentioned int he article.
... View more
02-25-2017
04:50 AM
@rahul gulati You can follow the article that I have published few days ago. https://community.hortonworks.com/articles/52875/enable-https-for-hdfs.html Please let me know if you have any questions.
... View more
02-24-2017
08:51 PM
Steps to enable Trace logging in Ambari server for Oracle Database. Step1: 1. Download ojdbc6_g.jar from Oracle JDBC driver trace jar and copy to /usr/share/java and make sure to have correct permissions.
Note: take out the actual ojdbc.jar from the location. 2.Create /etc/ambari-server/conf/oracle.properties .level=ALL
oracle.jdbc.level=INFO
oracle.jdbc.handlers=java.util.logging.ConsoleHandler
java.util.logging.ConsoleHandler.level=INFO
java.util.logging.ConsoleHandler.formatter=java.util.logging.SimpleFormatter
3. Add "-Doracle.jdbc.Trace=true -Djava.util.logging.config.file=/etc/ambari-server/conf/oracle.properties" property in /var/lib/ambari-server/ambari-env.sh export AMBARI_JVM_ARGS=$AMBARI_JVM_ARGS' -Xms512m -Xmx2048m -XX:MaxPermSize=128m -Djava.security.auth.login.config=$ROOT/etc/ambari-server/conf/krb5JAASLogin.conf -Djav
to
export AMBARI_JVM_ARGS=$AMBARI_JVM_ARGS' -Xms512m -Xmx2048m -XX:MaxPermSize=128m -Doracle.jdbc.Trace=true -Djava.util.logging.config.file=/etc/ambari-server/conf/oracle.properties -Djava.security.auth.login.config=$ROOT/etc/ambari-server/conf/krb5JAASLogin.conf -Djav
After restart you will see logs being written to jdbc.log file
... View more
Labels:
02-24-2017
08:14 PM
1 Kudo
Steps to enable Query logging in Ambari server with Postgres Database
1. If it is Postgres as DB then add following property in ambari.properties
server.jdbc.properties.loglevel=2
After restart you can see SQL query logging to Ambari-server.out file
2.If it is MySQL as DB then add/update following property in ambari.properties.
append below value in JDBC URL
?logger=com.mysql.jdbc.log.Slf4JLogger&profileSQL=true
Ex:
server.jdbc.rca.url=jdbc:mysql://apappudb.hdp.com:3306/ambariupgrade?logger=com.mysql.jdbc.log.Slf4JLogger&profileSQL=true
and
server.jdbc.url=jdbc:mysql://apappudb.hdp.com:3306/ambariupgrade?logger=com.mysql.jdbc.log.Slf4JLogger&profileSQL=true
After re-start you will find the logs in ambari-server.log
... View more
Labels:
02-23-2017
10:47 PM
3 Kudos
Steps to enable SSL for Grafana from the keystore file. 1. First create keystore file using below command. $JAVA_HOME/bin/keytool -genkey -keyalg RSA -alias grafana -keystore keystore.jks -validity 360 -keysize 2048 2. Now export cert from JKS file keytool -export -alias grafana -file server.cer -keystore keystore.jks
3. Convert cert from DER to PEM format openssl x509 -in server.cer -inform der -outform pem -out cert.pem 4. Export privatekey to PKCS12 file keytool -v -importkeystore -srckeystore keystore.jks -srcalias ambari -destkeystore myp12file.p12 -deststoretype PKCS12 5. Now export private key from PKCS12 to PEM format. openssl pkcs12 -in myp12file.p12 -clcerts -nodes -nocerts | openssl rsa > private.key Note: private.key should be unencrypted file. it should be like -----BEGIN RSA PRIVATE KEY-----
xxxx
-----END RSA PRIVATE KEY----- Should be not having like "-----BEGIN ENCRYPTED PRIVATE KEY-----" The reason for using un encrypted key is because Grafana does not have any option to take privatekey password. 6. configure below properties under "Advanced ams-grafana-ini" Advanced ams-grafana-ini protocol https Advanced ams-grafana-ini cert_file path/cert.pem Advanced ams-grafana-ini cert-Key path/private.key 7. Restart Grafana server 8. You should be able to access the UI using https://HOSTNAME:3000/
... View more
Labels:
02-23-2017
05:20 PM
1 Kudo
1. Create keystore file first. keytool -genkey -keyalg RSA -alias ooziehost -keystore keystore.jks -validity 360 -keysize 2048 2. Login to Ambari server and go to Oozie configurations. 3. Add below configurations under "Advanced oozie-env" export OOZIE_HTTPS_PORT=11443
export OOZIE_HTTPS_KEYSTORE_FILE=/tmp/keystore.jks
export OOZIE_HTTPS_KEYSTORE_PASS=bigdata
4. Restart Oozie service from UI. 5. Now launch the Oozie UI from quick links - you should be able to access the URL https://OOZIEHOST:11443/oozie/ Note: Make sure to import the cert into Ambari Truststore.
... View more
Labels:
02-15-2017
06:08 PM
@Manish Anand looks like your tables are not visible to ambari user. please login with that user and then try to see if you can do "select * from metainfo"
... View more
02-15-2017
02:57 AM
@Manish Anand Can you share/attach latest ambari-server.log (or error snippet)
... View more