1

Error message: Caught an exception while executing custom service command: <type 'exceptions.OSError'>: [Errno 13] Permission denied: '/var/lib/ambari-agent/cred/conf/hive/hive-site.jceks'; [Errno 13] Permission denied: '/var/lib/ambari-agent/cred/conf/hive/hive-site.jceks'

The file exists and setting it to 777 does not solve the problem.

The service that fails to start is "MySQL Server". I can start and restart the msqld on the commandline.

Stefan Papp
  • 2,199
  • 1
  • 28
  • 54
  • That is a security store, you should NOT need to change its permissions. What user and group owns that file? And is ambari-agent running as root or a different user? If ambari-agent is running as root the file should be owned by root:root and permissions should be 644. – cjackson Apr 13 '17 at 20:55

2 Answers2

0

Stumbled upon the exact same issue during a fresh Hive Install on Ambari
I circumvented it by dropping the jceks security

I edited the hive-site.xml file
/etc/hive/2.x.x.x-xxx/0/conf.server/hive-site.xml

Removed :

  <property>
      <name>hadoop.security.credential.provider.path</name>
      <value>jceks://file/usr/lib/hive/conf/hive.jceks</value>
  </property>

Added :

<property>
  <name>javax.jdo.option.ConnectionPassword</name>
  <value>password</value>
  <description>password to use against metastore database</description>
</property>

And voilà.

Mehdi LAMRANI
  • 11,289
  • 14
  • 88
  • 130
0

This could also be because the ambari-agent in the concerned node is not run as a superuser. Go to the node where the problem exists and do:

ps aux | grep ambari-agent

If it is run by a non supersuer, do:

ambari-agent stop

Then run:

sudo ambari-agent start