Support Questions

Find answers, ask questions, and share your expertise
Announcements
Check out our newest addition to the community, the Cloudera Data Analytics (CDA) group hub.

How to change to accumulo_home directory from /home/accumulo to different mount point?

New Contributor

I don't have access to /home directory. Thus accumulo service is not starting due to no home directory.

Can I change the accumulo_home directory from the default /home/accumulo to different mount point on which I have access?


Ambari 2.7 and hdp 3.1

logs for accumulo-master:

stderr:

	Traceback (most recent call last):
	File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ACCUMULO/package/scripts/accumulo_master.py", line 24, in 
	AccumuloScript("master").execute()
	File "/usr/lib/ambari-agent/lib/resource_management/libraries/script/script.py", line 352, in execute
	method(env)
	File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ACCUMULO/package/scripts/accumulo_script.py", line 60, in start
	accumulo_service( self.component, action = "start")
	File "/var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ACCUMULO/package/scripts/accumulo_service.py", line 40, in accumulo_service
	recursive_ownership = True
	File "/usr/lib/ambari-agent/lib/resource_management/core/base.py", line 166, in __init__
	self.env.run()
	File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 160, in run
	self.run_action(resource, action)
	File "/usr/lib/ambari-agent/lib/resource_management/core/environment.py", line 124, in run_action
	provider_action()
	File "/usr/lib/ambari-agent/lib/resource_management/core/providers/system.py", line 191, in action_create
	sudo.makedir(path, self.resource.mode or 0755)
	File "/usr/lib/ambari-agent/lib/resource_management/core/sudo.py", line 127, in makedir
	os.mkdir(path)
	OSError: [Errno 13] Permission denied: "/home/accumulo"


stdout:

2019-07-08 06:24:58,332 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=3.1.0.0-78 -> 3.1.0.0-78

2019-07-08 06:24:58,347 - Using hadoop conf dir: /usr/hdp/3.1.0.0-78/hadoop/conf

2019-07-08 06:24:58,477 - Stack Feature Version Info: Cluster Stack=3.1, Command Stack=None, Command Version=3.1.0.0-78 -> 3.1.0.0-78

2019-07-08 06:24:58,481 - Using hadoop conf dir: /usr/hdp/3.1.0.0-78/hadoop/conf

2019-07-08 06:24:58,482 - Group['livy'] {}

2019-07-08 06:24:58,483 - Group['spark'] {}

2019-07-08 06:24:58,483 - Group['hdfs'] {}

2019-07-08 06:24:58,484 - Group['hadoop'] {}

2019-07-08 06:24:58,484 - Group['users'] {}

2019-07-08 06:24:58,484 - User['yarn-ats'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}

2019-07-08 06:24:58,485 - User['hive'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}

2019-07-08 06:24:58,486 - User['storm'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}

2019-07-08 06:24:58,486 - User['zookeeper'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}

2019-07-08 06:24:58,487 - User['ams'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}

2019-07-08 06:24:58,488 - User['tez'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'users'], 'uid': None}

2019-07-08 06:24:58,488 - User['accumulo'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}

2019-07-08 06:24:58,489 - User['livy'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['livy', 'hadoop'], 'uid': None}

2019-07-08 06:24:58,490 - User['druid'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}

2019-07-08 06:24:58,490 - User['spark'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['spark', 'hadoop'], 'uid': None}

2019-07-08 06:24:58,491 - User['ambari-qa'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop', 'users'], 'uid': None}

2019-07-08 06:24:58,492 - User['hdfs'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hdfs', 'hadoop'], 'uid': None}

2019-07-08 06:24:58,492 - User['yarn'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}

2019-07-08 06:24:58,493 - User['mapred'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}

2019-07-08 06:24:58,494 - User['hbase'] {'gid': 'hadoop', 'fetch_nonlocal_groups': True, 'groups': ['hadoop'], 'uid': None}

2019-07-08 06:24:58,494 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}

2019-07-08 06:24:58,496 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'}

2019-07-08 06:24:58,501 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh ambari-qa /tmp/hadoop-ambari-qa,/tmp/hsperfdata_ambari-qa,/home/ambari-qa,/tmp/ambari-qa,/tmp/sqoop-ambari-qa 0'] due to not_if

2019-07-08 06:24:58,501 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'create_parents': True, 'mode': 0775, 'cd_access': 'a'}

2019-07-08 06:24:58,502 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}

2019-07-08 06:24:58,503 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555}

2019-07-08 06:24:58,503 - call['/var/lib/ambari-agent/tmp/changeUid.sh hbase'] {}

2019-07-08 06:24:58,510 - call returned (0, '1014')

2019-07-08 06:24:58,510 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1014'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'}

2019-07-08 06:24:58,514 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase 1014'] due to not_if

2019-07-08 06:24:58,515 - Group['hdfs'] {}

2019-07-08 06:24:58,515 - User['hdfs'] {'fetch_nonlocal_groups': True, 'groups': ['hdfs', 'hadoop', u'hdfs']}

2019-07-08 06:24:58,516 - FS Type: HDFS

2019-07-08 06:24:58,516 - Directory['/etc/hadoop'] {'mode': 0755}

2019-07-08 06:24:58,527 - File['/usr/hdp/3.1.0.0-78/hadoop/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}

2019-07-08 06:24:58,528 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 01777}

2019-07-08 06:24:58,543 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce && getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'}

2019-07-08 06:24:58,548 - Skipping Execute[('setenforce', '0')] due to not_if

2019-07-08 06:24:58,548 - Directory['/var/log/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'hadoop', 'mode': 0775, 'cd_access': 'a'}

2019-07-08 06:24:58,550 - Directory['/var/run/hadoop'] {'owner': 'root', 'create_parents': True, 'group': 'root', 'cd_access': 'a'}

2019-07-08 06:24:58,550 - Directory['/var/run/hadoop/hdfs'] {'owner': 'hdfs', 'cd_access': 'a'}

2019-07-08 06:24:58,551 - Directory['/tmp/hadoop-hdfs'] {'owner': 'hdfs', 'create_parents': True, 'cd_access': 'a'}

2019-07-08 06:24:58,554 - File['/usr/hdp/3.1.0.0-78/hadoop/conf/commons-logging.properties'] {'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'}

2019-07-08 06:24:58,555 - File['/usr/hdp/3.1.0.0-78/hadoop/conf/health_check'] {'content': Template('health_check.j2'), 'owner': 'hdfs'}

2019-07-08 06:24:58,559 - File['/usr/hdp/3.1.0.0-78/hadoop/conf/log4j.properties'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644}

2019-07-08 06:24:58,567 - File['/usr/hdp/3.1.0.0-78/hadoop/conf/hadoop-metrics2.properties'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'}

2019-07-08 06:24:58,567 - File['/usr/hdp/3.1.0.0-78/hadoop/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'), 'mode': 0755}

2019-07-08 06:24:58,568 - File['/usr/hdp/3.1.0.0-78/hadoop/conf/configuration.xsl'] {'owner': 'hdfs', 'group': 'hadoop'}

2019-07-08 06:24:58,571 - File['/etc/hadoop/conf/topology_mappings.data'] {'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'only_if': 'test -d /etc/hadoop/conf', 'group': 'hadoop', 'mode': 0644}

2019-07-08 06:24:58,575 - File['/etc/hadoop/conf/topology_script.py'] {'content': StaticFile('topology_script.py'), 'only_if': 'test -d /etc/hadoop/conf', 'mode': 0755}

2019-07-08 06:24:58,578 - Skipping unlimited key JCE policy check and setup since the Java VM is not managed by Ambari

2019-07-08 06:24:58,770 - Using hadoop conf dir: /usr/hdp/3.1.0.0-78/hadoop/conf

2019-07-08 06:24:58,771 - Directory['/usr/hdp/current/accumulo-master/conf/server'] {'owner': 'accumulo', 'group': 'hadoop', 'create_parents': True, 'mode': 0700}

2019-07-08 06:24:58,772 - XmlConfig['accumulo-site.xml'] {'group': 'hadoop', 'conf_dir': '/usr/hdp/current/accumulo-master/conf/server', 'mode': 0600, 'configuration_attributes': {}, 'owner': 'accumulo', 'configurations': ...}

2019-07-08 06:24:58,780 - Generating config: /usr/hdp/current/accumulo-master/conf/server/accumulo-site.xml

2019-07-08 06:24:58,780 - File['/usr/hdp/current/accumulo-master/conf/server/accumulo-site.xml'] {'owner': 'accumulo', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': 0600, 'encoding': 'UTF-8'}

2019-07-08 06:24:58,789 - Directory['/var/run/accumulo'] {'owner': 'accumulo', 'group': 'hadoop', 'create_parents': True, 'mode': 0755, 'cd_access': 'a'}

2019-07-08 06:24:58,790 - Directory['/var/log/accumulo'] {'owner': 'accumulo', 'group': 'hadoop', 'create_parents': True, 'mode': 0755, 'cd_access': 'a'}

2019-07-08 06:24:58,793 - File['/usr/hdp/current/accumulo-master/conf/server/accumulo-env.sh'] {'content': InlineTemplate(...), 'owner': 'accumulo', 'group': 'hadoop', 'mode': 0644}

2019-07-08 06:24:58,794 - PropertiesFile['/usr/hdp/current/accumulo-master/conf/server/client.conf'] {'owner': 'accumulo', 'group': 'hadoop', 'properties': {'instance.zookeeper.host': u'usiadvs511034.am.example.com:2181,usiadvs511037.am.example.com:2181,usiadvs511033.am.example.com:2181', 'instance.name': u'hdp-accumulo-instance', 'instance.zookeeper.timeout': u'30s'}}

2019-07-08 06:24:58,796 - Generating properties file: /usr/hdp/current/accumulo-master/conf/server/client.conf

2019-07-08 06:24:58,796 - File['/usr/hdp/current/accumulo-master/conf/server/client.conf'] {'owner': 'accumulo', 'content': InlineTemplate(...), 'group': 'hadoop', 'mode': None, 'encoding': 'UTF-8'}

2019-07-08 06:24:58,798 - Writing File['/usr/hdp/current/accumulo-master/conf/server/client.conf'] because contents don't match

2019-07-08 06:24:58,798 - File['/usr/hdp/current/accumulo-master/conf/server/log4j.properties'] {'content': ..., 'owner': 'accumulo', 'group': 'hadoop', 'mode': 0644}

2019-07-08 06:24:58,799 - TemplateConfig['/usr/hdp/current/accumulo-master/conf/server/auditLog.xml'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'}

2019-07-08 06:24:58,801 - File['/usr/hdp/current/accumulo-master/conf/server/auditLog.xml'] {'content': Template('auditLog.xml.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None}

2019-07-08 06:24:58,801 - TemplateConfig['/usr/hdp/current/accumulo-master/conf/server/generic_logger.xml'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'}

2019-07-08 06:24:58,804 - File['/usr/hdp/current/accumulo-master/conf/server/generic_logger.xml'] {'content': Template('generic_logger.xml.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None}

2019-07-08 06:24:58,804 - TemplateConfig['/usr/hdp/current/accumulo-master/conf/server/monitor_logger.xml'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'}

2019-07-08 06:24:58,806 - File['/usr/hdp/current/accumulo-master/conf/server/monitor_logger.xml'] {'content': Template('monitor_logger.xml.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None}

2019-07-08 06:24:58,806 - File['/usr/hdp/current/accumulo-master/conf/server/accumulo-metrics.xml'] {'content': StaticFile('accumulo-metrics.xml'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': 0644}

2019-07-08 06:24:58,807 - TemplateConfig['/usr/hdp/current/accumulo-master/conf/server/tracers'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'}

2019-07-08 06:24:58,808 - File['/usr/hdp/current/accumulo-master/conf/server/tracers'] {'content': Template('tracers.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None}

2019-07-08 06:24:58,809 - TemplateConfig['/usr/hdp/current/accumulo-master/conf/server/gc'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'}

2019-07-08 06:24:58,810 - File['/usr/hdp/current/accumulo-master/conf/server/gc'] {'content': Template('gc.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None}

2019-07-08 06:24:58,810 - TemplateConfig['/usr/hdp/current/accumulo-master/conf/server/monitor'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'}

2019-07-08 06:24:58,811 - File['/usr/hdp/current/accumulo-master/conf/server/monitor'] {'content': Template('monitor.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None}

2019-07-08 06:24:58,812 - TemplateConfig['/usr/hdp/current/accumulo-master/conf/server/slaves'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'}

2019-07-08 06:24:58,813 - File['/usr/hdp/current/accumulo-master/conf/server/slaves'] {'content': Template('slaves.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None}

2019-07-08 06:24:58,813 - TemplateConfig['/usr/hdp/current/accumulo-master/conf/server/masters'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'}

2019-07-08 06:24:58,815 - File['/usr/hdp/current/accumulo-master/conf/server/masters'] {'content': Template('masters.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None}

2019-07-08 06:24:58,815 - TemplateConfig['/usr/hdp/current/accumulo-master/conf/server/hadoop-metrics2-accumulo.properties'] {'owner': 'accumulo', 'template_tag': None, 'group': 'hadoop'}

2019-07-08 06:24:58,819 - File['/usr/hdp/current/accumulo-master/conf/server/hadoop-metrics2-accumulo.properties'] {'content': Template('hadoop-metrics2-accumulo.properties.j2'), 'owner': 'accumulo', 'group': 'hadoop', 'mode': None}

2019-07-08 06:24:58,820 - HdfsResource['/user/accumulo'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': 'HDFS', 'default_fs': 'hdfs://usiadvs511033.am.example.com:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': [EMPTY], 'user': 'hdfs', 'owner': 'accumulo', 'hadoop_conf_dir': '/usr/hdp/3.1.0.0-78/hadoop/conf', 'type': 'directory', 'action': ['create_on_execute'], 'immutable_paths': [u'/mr-history/done', u'/warehouse/tablespace/managed/hive', u'/warehouse/tablespace/external/hive', u'/app-logs', u'/tmp'], 'mode': 0700}

2019-07-08 06:24:58,822 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET -d '"'"''"'"' -H '"'"'Content-Length: 0'"'"' '"'"'http://usiadvs511033.am.example.com:50070/webhdfs/v1/user/accumulo?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpckvANT 2>/tmp/tmpgvoeDK''] {'logoutput': None, 'quiet': False}

2019-07-08 06:24:58,894 - call returned (0, 'su: warning: cannot change directory to /home/hdfs: No such file or directory')

2019-07-08 06:24:58,894 - get_user_call_output returned (0, u'{"FileStatus":{"accessTime":0,"blockSize":0,"childrenNum":0,"fileId":16389,"group":"hdfs","length":0,"modificationTime":1562233108116,"owner":"accumulo","pathSuffix":"","permission":"700","replication":0,"storagePolicy":0,"type":"DIRECTORY"}}200', u'')

2019-07-08 06:24:58,895 - HdfsResource['hdfs://usiadvs511033.am.example.com:8020/apps/accumulo'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': 'HDFS', 'default_fs': 'hdfs://usiadvs511033.am.example.com:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': [EMPTY], 'user': 'hdfs', 'owner': 'accumulo', 'hadoop_conf_dir': '/usr/hdp/3.1.0.0-78/hadoop/conf', 'type': 'directory', 'action': ['create_on_execute'], 'immutable_paths': [u'/mr-history/done', u'/warehouse/tablespace/managed/hive', u'/warehouse/tablespace/external/hive', u'/app-logs', u'/tmp'], 'mode': 0700}

2019-07-08 06:24:58,896 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET -d '"'"''"'"' -H '"'"'Content-Length: 0'"'"' '"'"'http://usiadvs511033.am.example.com:50070/webhdfs/v1/apps/accumulo?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpP0tp91 2>/tmp/tmpKzs865''] {'logoutput': None, 'quiet': False}

2019-07-08 06:24:58,946 - call returned (0, 'su: warning: cannot change directory to /home/hdfs: No such file or directory')

2019-07-08 06:24:58,947 - get_user_call_output returned (0, u'{"FileStatus":{"accessTime":0,"blockSize":0,"childrenNum":1,"fileId":16392,"group":"hdfs","length":0,"modificationTime":1562233111702,"owner":"accumulo","pathSuffix":"","permission":"700","replication":0,"storagePolicy":0,"type":"DIRECTORY"}}200', u'')

2019-07-08 06:24:58,947 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'dfs_type': 'HDFS', 'default_fs': 'hdfs://usiadvs511033.am.example.com:8020', 'hdfs_resource_ignore_file': '/var/lib/ambari-agent/data/.hdfs_resource_ignore', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': [EMPTY], 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/usr/hdp/3.1.0.0-78/hadoop/conf', 'immutable_paths': [u'/mr-history/done', u'/warehouse/tablespace/managed/hive', u'/warehouse/tablespace/external/hive', u'/app-logs', u'/tmp']}

2019-07-08 06:24:58,949 - File['/var/lib/ambari-agent/tmp/pass'] {'content': InlineTemplate(...), 'owner': 'accumulo', 'group': 'hadoop', 'mode': 0600}

2019-07-08 06:24:58,949 - Writing File['/var/lib/ambari-agent/tmp/pass'] because it doesn't exist

2019-07-08 06:24:58,949 - Changing owner for /var/lib/ambari-agent/tmp/pass from 0 to accumulo

2019-07-08 06:24:58,949 - Changing group for /var/lib/ambari-agent/tmp/pass from 0 to hadoop

2019-07-08 06:24:58,949 - Changing permission for /var/lib/ambari-agent/tmp/pass from 644 to 600

2019-07-08 06:24:58,950 - Execute['cat /var/lib/ambari-agent/tmp/pass | ACCUMULO_CONF_DIR=/usr/hdp/current/accumulo-master/conf/server /usr/hdp/current/accumulo-client/bin/accumulo init --instance-name hdp-accumulo-instance --clear-instance-name >/var/log/accumulo/accumulo-init.out 2>/var/log/accumulo/accumulo-init.err'] {'logoutput': True, 'not_if': "ambari-sudo.sh su accumulo -l -s /bin/bash -c ' /usr/hdp/current/hadoop-client/bin/hadoop --config /usr/hdp/3.1.0.0-78/hadoop/conf fs -stat hdfs://usiadvs511033.am.example.com:8020/apps/accumulo/data'", 'user': 'accumulo'}

2019-07-08 06:25:00,564 - Skipping Execute['cat /var/lib/ambari-agent/tmp/pass | ACCUMULO_CONF_DIR=/usr/hdp/current/accumulo-master/conf/server /usr/hdp/current/accumulo-client/bin/accumulo init --instance-name hdp-accumulo-instance --clear-instance-name >/var/log/accumulo/accumulo-init.out 2>/var/log/accumulo/accumulo-init.err'] due to not_if

2019-07-08 06:25:00,565 - File['/var/lib/ambari-agent/tmp/pass'] {'action': ['delete']}

2019-07-08 06:25:00,565 - Deleting File['/var/lib/ambari-agent/tmp/pass']

2019-07-08 06:25:00,565 - Directory['/home/accumulo'] {'owner': 'accumulo', 'group': 'hadoop', 'recursive_ownership': True}2019-07-08 06:25:00,566 - Creating directory Directory['/home/accumulo'] since it doesn't exist.


Command failed after 1 tries

1 REPLY 1

Super Mentor

@Juhi Kude

May be you can try changing the following line.

# grep 'os.path.expanduser' /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ACCUMULO/package/scripts/accumulo_service.py
      Directory(os.path.expanduser(format("~{accumulo_user}")),


To something like below:

# grep 'os.path.expanduser' /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ACCUMULO/package/scripts/accumulo_service.py
      Directory(os.path.expanduser(format("/path/to/different/dir/{accumulo_user}")),      



Try to specify the path "/path/to/different/dir/" where you have the access. It might work.

The directory needs to be existing before you attempt to restart Accumulo and permission on that dir n eeds to be setup accordingly for the accumulo user like "chown -R accumulo:hadoop /path/to/different/dir".

# mkdir -p /path/to/different/dir

.

Also before restarting the Accumulo please remove the following files from thsat host.

# rm -f /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ACCUMULO/package/scripts/accumulo_service.pyo
# rm -f /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ACCUMULO/package/scripts/accumulo_service.pyc   



For the permanent change you will need to make the same change on the ambari server host as well inside the file:

/var/lib/ambari-server/resources/stacks/HDP/3.0/services/ACCUMULO/package/scripts/accumulo_service.py

::NOTE:: These changes are not just for testing and not recommended for production use. As it is not thoroughly tested. So you might choose this approach at your own risk.

.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.