Member since
04-03-2019
962
Posts
1743
Kudos Received
146
Solutions
My Accepted Solutions
| Title | Views | Posted |
|---|---|---|
| 15002 | 03-08-2019 06:33 PM | |
| 6178 | 02-15-2019 08:47 PM | |
| 5098 | 09-26-2018 06:02 PM | |
| 12600 | 09-07-2018 10:33 PM | |
| 7446 | 04-25-2018 01:55 AM |
10-24-2016
03:05 PM
1 Kudo
kinit is working well. Problem solved adter reading this https://hortonworks.jira.com/browse/BUG-42602 and change hive-site.xml hive.cluster.delegation.token.store.class=org.apache.hadoop.hive.thrift.DBTokenStore
... View more
10-24-2016
01:36 PM
6 Kudos
Below are the steps for Oozie database migration from Derby to Mysql. Step 1 - Have MySQL server installed and ready to be configured.
. Step 2 - Stop Oozie service from Ambari UI.
. Step 3 - On Ambari Server, run below command ambari-server setup --jdbc-db=mysql --jdbc-driver=/usr/share/java/mysql-connector-java.jar
Note - Please pass appropriate driver if /usr/share/java/mysql-connector-java.jar does not exists. .
. Step 4 - Login to Mysql server as root user and create a blank 'oozie' database and grant required permissions to the 'oozie' user. #create database oozie; #grant all privileges on oozie.* to 'oozie’@‘<oozie-server>' identified by 'oozie’;
Note - 'oozie' is your oozie database password, if you want you can change it in above command .
. Step 5 - Add mysql database server details in Oozie configuration via Ambari UI. . Step 6 - Make sure that you have mysql connector jar under Oozie libext (/usr/hdp/<version>/oozie/libext/mysql-connector-java.jar), if not then copy it from available machine.
. Step 7 - Prepare Oozie war file /usr/hdp/<version>/oozie/bin/oozie-setup.sh prepare-war
Note - Run above command on oozie server as oozie user.
. Step 8 - Prepare Oozie schema using below command (Run below command on Oozie host as oozie user) /usr/hdp/<version>/oozie/bin/oozie-setup.sh db create -run
Please note - Above steps does not have information to migrate historical data from Derby to Mysql. Basically Oozie stores workflows/coordinator configuration related information as MEDIUMBLOB datatype and there is no straightforward way to convert these information in mysql compatible format.
. If you take a sql dump from Derby and import directly into mysql, Oozie server will start, you will see all historical data however whenever Oozie will try to change the coordinator action state/workflow action state, you might see parsing issues like below(because of incorrect BLOBs in Mysql): 2016-08-22 06:48:19,036 WARN CoordMaterializeTransitionXCommand:523 - SERVER[oozienode2.openstacklocal] USER[root] GROUP[-] TOKEN[] APP[test] JOB[0000003-160822025623541-oozie-oozi-C] ACTION[-] Configuration parse error. read from DB :4f424a00000001000000010005636f6465630002677a1f8b0800000000000000c5945d4bc3301486ef05ffc32ebc6d9276acce520afe8121526fbc8be9a9ab4b73e269639de27f37eb9c30d6099d8237219fcffbe6cd47aad094d5a323d95668b2f3b3c924b58416a85df72ddf36b286ac5e378a2adbdec87699f2beeb6bf84java.io.IOException: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog. at org.apache.oozie.util.XConfiguration.parse(XConfiguration.java:289) at org.apache.oozie.util.XConfiguration.<init>(XConfiguration.java:80) at Happy Hadooping!! Please comment your feedback or questions in the comment section.
... View more
Labels:
10-16-2016
11:23 PM
I think this file is generated by ambari. Probably that is why the owner is root.
... View more
09-29-2018
11:02 AM
Hi there, I added oozie.authentication.cookie.domain=<domain> to Customer oozie-site and tried this. Doesn't work for me. I finally solved it by installing extjs directly. wget http://archive.cloudera.com/gplextras/misc/ext-2.2.zip
Stop Oozie service from Ambari Copy it to the path: /usr/hdp/current/oozie-client/libext Regenerate the war file by executing: $ /usr/hdp/current/oozie-server/bin/oozie-setup.sh prepare-war Start Oozie again Hope this helps.
... View more
01-18-2018
09:33 PM
with HDP-2.6, I'm facing an issue with the zookeeper-server and client install with the above config. I tried removing and re-installing but that didn't work either. mkdir: cannot create directory `/usr/hdp/current/zookeeper-client': File exists
... View more
09-06-2016
05:17 PM
Also Make sure that curl is installed in target machine make sure that target machine can see oozie server and able to run the curl command against it In my case I've got the timeout issue and installed curl but didn't work so I added the FQDN in /etc/hosts and it worked perfectly well.
... View more
08-31-2016
06:24 AM
Hi @Narasimhan Kazhiyur Yes above change should work and also you should format the new name directory
... View more
10-20-2016
02:28 PM
I faced the following error where the shell script is running over 24 hours, and failing to launch hive scripts after 24 hours with following error. Workaround: Increase the following Property Value in hive-site.xml and restart Hive Metastore to the desired need of oozie shell script to continue running.
hive.cluster.delegation.token.renew-interval (Default: 86400000 i.e. 24hrs) hive.cluster.delegation.token.max-lifetime (Default: 604800000 i.e. 7days) yarn application log Stdoutput 16/10/16 17:12:00 [main]: WARN hive.metastore: Failed to connect to the MetaStore Server...
Stdoutput org.apache.thrift.transport.TTransportException: Peer indicated failure: DIGEST-MD5: IO error acquiring password Hive MetaStore Error: ERROR [pool-5-thread-198]: transport.TSaslTransport (TSaslTransport.java:open(315)) - SASL negotiation failure
javax.security.sasl.SaslException: DIGEST-MD5: IO error acquiring password [Caused by org.apache.hadoop.security.token.SecretManager$InvalidToken: token expired or does not exist: owner=user, renewer=oozie, realUser=oozie/oozie.host.name@EXAMPLE.COM, issueDate=1476560270232, maxDate=1477165070232, sequenceNumber=51, masterKeyId=714]
... View more
08-12-2016
05:17 AM
@Robert Levas - DEFAULT at the middle worked when I tried this setup. I checked given article and I agree that modifying dfs.namenode.kerberos.principal.pattern was somehow missed while writing this article. I will add that missing step now. Thank you! 🙂
... View more