Member since
06-20-2016
308
Posts
103
Kudos Received
29
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
1956 | 09-19-2018 06:31 PM | |
1442 | 09-13-2018 09:33 PM | |
1412 | 09-04-2018 05:29 PM | |
4415 | 08-27-2018 04:33 PM | |
3484 | 08-22-2018 07:46 PM |
08-16-2018
05:56 PM
1 Kudo
@Michael Bronson Hbase master does not come with apache-log4j-extras-1.2.17.jar jar file - hence it fails with error as "RollingFileAppender classnotfound error" As a workaround I copied the JAR file hiveserver2 to hbase master and restart the service then it starts working. cp /usr/hdp/current/hive-server2/lib/apache-log4j-extras-1.2.17.jar /usr/hdp/current/hbase-master/lib/ Please note that this is temporary workaround - If you will have to do this again in case of HDP upgrade.
... View more
08-16-2018
04:11 PM
@Sivasankar Chandrasekar may be you can create config groups in Ambari and then define it.
... View more
08-15-2018
08:53 PM
@Michael Bronson thats good - please mark the correct answer.
... View more
08-15-2018
07:12 PM
@Michael Bronson see my above comment - "FixedWindowRollingPolicy" (its not windows its window)is policy name - its nothing to do with OS
... View more
08-15-2018
07:11 PM
@Michael Bronson yes that is correct - please see attached my log4j configuration in ambari.log4j.txt
... View more
08-15-2018
07:04 PM
@Zack Atkinson not sure your answer is related to the question being asked - Am i missing some thing here? Please check my comment below for answer to the curl call issue.
... View more
08-15-2018
06:58 PM
Please use below config for size based rotation. log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
log4j.appender.DRFA=org.apache.log4j.rolling.RollingFileAppender
log4j.appender.DRFA.rollingPolicy=org.apache.log4j.rolling.FixedWindowRollingPolicy
log4j.appender.DRFA.triggeringPolicy=org.apache.log4j.rolling.SizeBasedTriggeringPolicy
log4j.appender.DRFA.rollingPolicy.ActiveFileName =${hive.log.dir}/${hive.log.file}.log
log4j.appender.DRFA.rollingPolicy.FileNamePattern=${hive.log.dir}/${hive.log.file}-.%i.log.gz
log4j.appender.DRFA.triggeringPolicy.MaxFileSize=10000
log4j.appender.DRFA.rollingPolicy.maxIndex=10
I have tried this and it works perfectly fine. For some reason maxfilesize is not working if used like 1MB like that - so use live above. Note: please check hive-server2.err for any WARNINGS if does not work
... View more
08-15-2018
06:51 PM
@Zack Atkinson the curl call you are trying is incorrect. use cacert instead of cert curl -X POST --data 'Hello World! SSL Worked!''https:HOST:PORT/PATH '----cacert ./meyCert My example: curl -X GET https://c1111-node1.hdp.com:8443/#/login/local --cacert /tmp/knox.crt Please mark my comment as correct answer if this solves your issue.
... View more
08-15-2018
06:25 PM
2 Kudos
Below properties can be used to configure the log4j settings for size based compressed backup. Here is an example for Hive service. log4j.appender.DRFA.layout=org.apache.log4j.PatternLayout
log4j.appender.DRFA=org.apache.log4j.rolling.RollingFileAppender
log4j.appender.DRFA.rollingPolicy=org.apache.log4j.rolling.FixedWindowRollingPolicy
log4j.appender.DRFA.triggeringPolicy=org.apache.log4j.rolling.SizeBasedTriggeringPolicy
log4j.appender.DRFA.rollingPolicy.ActiveFileName =${hive.log.dir}/${hive.log.file}.log
log4j.appender.DRFA.rollingPolicy.FileNamePattern=${hive.log.dir}/${hive.log.file}-.%i.log.gz
log4j.appender.DRFA.triggeringPolicy.MaxFileSize=10000
log4j.appender.DRFA.rollingPolicy.maxIndex=10
For some reason maxfilesize is not working if used like 1MB like that - so use live above. Note: please check console log (.out or .err) for any WARNINGS if does not work
... View more
Labels:
08-15-2018
04:35 PM
@Zack Atkinson Using curl to make REST API call to https you have 2 options. 1. Do insecure connection/call with "-k" option - this option tells to curl that simply trust the server cert and do the post. Ex: curl -k -X POST --data 'Hello World! SSL Worked!''https:HOST:PORT/PATH' 2. You don't need to provide private key - just public cert is good enough. Ex: curl -X POST --data 'Hello World! SSL Worked!''https:HOST:PORT/PATH'--cert ./meyCert
... View more