spring-attic / spring-xd-ambari

Apache Ambari integration for Spring XD
Apache License 2.0
9 stars 18 forks source link

Start Spring XD Admin in Ambari issue #21

Open AliTaher0 opened 8 years ago

AliTaher0 commented 8 years ago

Hello, I have HDP 2.3.4 installed on Ambari Server 2.2. I installed Spring XD and it was working fine , but recently i'm not able to start spring XD Admin service from Ambari. below is the log i'm getting :

2016-01-30 10:08:02,644 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.3.4.0-3485 2016-01-30 10:08:02,644 - Checking if need to create versioned conf dir /etc/hadoop/2.3.4.0-3485/0 2016-01-30 10:08:02,644 - call['conf-select create-conf-dir --package hadoop --stack-version 2.3.4.0-3485 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1} 2016-01-30 10:08:02,666 - call returned (1, '/etc/hadoop/2.3.4.0-3485/0 exist already', '') 2016-01-30 10:08:02,667 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.3.4.0-3485 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False} 2016-01-30 10:08:02,689 - checked_call returned (0, '/usr/hdp/2.3.4.0-3485/hadoop/conf -> /etc/hadoop/2.3.4.0-3485/0') 2016-01-30 10:08:02,689 - Ensuring that hadoop has the correct symlink structure 2016-01-30 10:08:02,689 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2016-01-30 10:08:02,776 - The hadoop conf dir /usr/hdp/current/hadoop-client/conf exists, will call conf-select on it for version 2.3.4.0-3485 2016-01-30 10:08:02,776 - Checking if need to create versioned conf dir /etc/hadoop/2.3.4.0-3485/0 2016-01-30 10:08:02,777 - call['conf-select create-conf-dir --package hadoop --stack-version 2.3.4.0-3485 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False, 'stderr': -1} 2016-01-30 10:08:02,798 - call returned (1, '/etc/hadoop/2.3.4.0-3485/0 exist already', '') 2016-01-30 10:08:02,798 - checked_call['conf-select set-conf-dir --package hadoop --stack-version 2.3.4.0-3485 --conf-version 0'] {'logoutput': False, 'sudo': True, 'quiet': False} 2016-01-30 10:08:02,819 - checked_call returned (0, '/usr/hdp/2.3.4.0-3485/hadoop/conf -> /etc/hadoop/2.3.4.0-3485/0') 2016-01-30 10:08:02,819 - Ensuring that hadoop has the correct symlink structure 2016-01-30 10:08:02,820 - Using hadoop conf dir: /usr/hdp/current/hadoop-client/conf 2016-01-30 10:08:02,821 - Group['hadoop'] {} 2016-01-30 10:08:02,822 - Group['users'] {} 2016-01-30 10:08:02,822 - User['hive'] {'gid': 'hadoop', 'groups': ['hadoop']} 2016-01-30 10:08:02,823 - User['oozie'] {'gid': 'hadoop', 'groups': ['users']} 2016-01-30 10:08:02,824 - User['ambari-qa'] {'gid': 'hadoop', 'groups': ['users']} 2016-01-30 10:08:02,824 - User['spring-xd'] {'gid': 'hadoop', 'groups': ['hadoop']} 2016-01-30 10:08:02,825 - User['hdfs'] {'gid': 'hadoop', 'groups': ['hadoop']} 2016-01-30 10:08:02,826 - User['mapred'] {'gid': 'hadoop', 'groups': ['hadoop']} 2016-01-30 10:08:02,826 - User['hbase'] {'gid': 'hadoop', 'groups': ['hadoop']} 2016-01-30 10:08:02,827 - User['tez'] {'gid': 'hadoop', 'groups': ['users']} 2016-01-30 10:08:02,827 - User['zookeeper'] {'gid': 'hadoop', 'groups': ['hadoop']} 2016-01-30 10:08:02,828 - User['kafka'] {'gid': 'hadoop', 'groups': ['hadoop']} 2016-01-30 10:08:02,829 - User['sqoop'] {'gid': 'hadoop', 'groups': ['hadoop']} 2016-01-30 10:08:02,829 - User['yarn'] {'gid': 'hadoop', 'groups': ['hadoop']} 2016-01-30 10:08:02,830 - User['hcat'] {'gid': 'hadoop', 'groups': ['hadoop']} 2016-01-30 10:08:02,830 - User['ams'] {'gid': 'hadoop', 'groups': ['hadoop']} 2016-01-30 10:08:02,831 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555} 2016-01-30 10:08:02,833 - 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'] {'not_if': '(test $(id -u ambari-qa) -gt 1000) || (false)'} 2016-01-30 10:08:02,837 - 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'] due to not_if 2016-01-30 10:08:02,837 - Directory['/tmp/hbase-hbase'] {'owner': 'hbase', 'recursive': True, 'mode': 0775, 'cd_access': 'a'} 2016-01-30 10:08:02,838 - File['/var/lib/ambari-agent/tmp/changeUid.sh'] {'content': StaticFile('changeToSecureUid.sh'), 'mode': 0555} 2016-01-30 10:08:02,839 - Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] {'not_if': '(test $(id -u hbase) -gt 1000) || (false)'} 2016-01-30 10:08:02,843 - Skipping Execute['/var/lib/ambari-agent/tmp/changeUid.sh hbase /home/hbase,/tmp/hbase,/usr/bin/hbase,/var/log/hbase,/tmp/hbase-hbase'] due to not_if 2016-01-30 10:08:02,843 - Group['hdfs'] {'ignore_failures': False} 2016-01-30 10:08:02,844 - User['hdfs'] {'ignore_failures': False, 'groups': ['hadoop', 'hdfs']} 2016-01-30 10:08:02,844 - Directory['/etc/hadoop'] {'mode': 0755} 2016-01-30 10:08:02,859 - File['/usr/hdp/current/hadoop-client/conf/hadoop-env.sh'] {'content': InlineTemplate(...), 'owner': 'hdfs', 'group': 'hadoop'} 2016-01-30 10:08:02,860 - Directory['/var/lib/ambari-agent/tmp/hadoop_java_io_tmpdir'] {'owner': 'hdfs', 'group': 'hadoop', 'mode': 0777} 2016-01-30 10:08:02,872 - Execute[('setenforce', '0')] {'not_if': '(! which getenforce ) || (which getenforce && getenforce | grep -q Disabled)', 'sudo': True, 'only_if': 'test -f /selinux/enforce'} 2016-01-30 10:08:02,878 - Skipping Execute[('setenforce', '0')] due to not_if 2016-01-30 10:08:02,878 - Directory['/var/log/hadoop'] {'owner': 'root', 'mode': 0775, 'group': 'hadoop', 'recursive': True, 'cd_access': 'a'} 2016-01-30 10:08:02,880 - Directory['/var/run/hadoop'] {'owner': 'root', 'group': 'root', 'recursive': True, 'cd_access': 'a'} 2016-01-30 10:08:02,881 - Directory['/tmp/hadoop-hdfs'] {'owner': 'hdfs', 'recursive': True, 'cd_access': 'a'} 2016-01-30 10:08:02,885 - File['/usr/hdp/current/hadoop-client/conf/commons-logging.properties'] {'content': Template('commons-logging.properties.j2'), 'owner': 'hdfs'} 2016-01-30 10:08:02,887 - File['/usr/hdp/current/hadoop-client/conf/health_check'] {'content': Template('health_check.j2'), 'owner': 'hdfs'} 2016-01-30 10:08:02,887 - File['/usr/hdp/current/hadoop-client/conf/log4j.properties'] {'content': ..., 'owner': 'hdfs', 'group': 'hadoop', 'mode': 0644} 2016-01-30 10:08:02,896 - File['/usr/hdp/current/hadoop-client/conf/hadoop-metrics2.properties'] {'content': Template('hadoop-metrics2.properties.j2'), 'owner': 'hdfs'} 2016-01-30 10:08:02,896 - File['/usr/hdp/current/hadoop-client/conf/task-log4j.properties'] {'content': StaticFile('task-log4j.properties'), 'mode': 0755} 2016-01-30 10:08:02,901 - File['/etc/hadoop/conf/topology_mappings.data'] {'owner': 'hdfs', 'content': Template('topology_mappings.data.j2'), 'only_if': 'test -d /etc/hadoop/conf', 'group': 'hadoop'} 2016-01-30 10:08:02,905 - File['/etc/hadoop/conf/topology_script.py'] {'content': StaticFile('topology_script.py'), 'only_if': 'test -d /etc/hadoop/conf', 'mode': 0755} 2016-01-30 10:08:03,089 - call['/usr/bin/hdp-select versions > /tmp/tmpze313i'] {} 2016-01-30 10:08:03,109 - call returned (0, '') 2016-01-30 10:08:03,113 - HdfsResource['/xd'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'default_fs': 'hdfs://master.domain.com:8020', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': [EMPTY], 'user': 'hdfs', 'owner': 'spring-xd', 'hadoop_conf_dir': '/etc/hadoop/conf', 'type': 'directory', 'action': ['create_on_execute'], 'mode': 0777} 2016-01-30 10:08:03,115 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://master.domain.com:50070/webhdfs/v1/xd?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmp47pmwD 2>/tmp/tmphWr_uk''] {'logoutput': None, 'quiet': False} 2016-01-30 10:08:03,146 - call returned (0, '') 2016-01-30 10:08:03,147 - HdfsResource['/user/spring-xd'] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'default_fs': 'hdfs://master.domain.com:8020', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': [EMPTY], 'user': 'hdfs', 'owner': 'spring-xd', 'hadoop_conf_dir': '/etc/hadoop/conf', 'type': 'directory', 'action': ['create_on_execute'], 'mode': 0777} 2016-01-30 10:08:03,147 - call['ambari-sudo.sh su hdfs -l -s /bin/bash -c 'curl -sS -L -w '"'"'%{http_code}'"'"' -X GET '"'"'http://master.domain.com:50070/webhdfs/v1/user/spring-xd?op=GETFILESTATUS&user.name=hdfs'"'"' 1>/tmp/tmpHmHYEW 2>/tmp/tmpSOjCj2''] {'logoutput': None, 'quiet': False} 2016-01-30 10:08:03,177 - call returned (0, '') 2016-01-30 10:08:03,178 - HdfsResource[None] {'security_enabled': False, 'hadoop_bin_dir': '/usr/hdp/current/hadoop-client/bin', 'keytab': [EMPTY], 'default_fs': 'hdfs://master.domain.com:8020', 'hdfs_site': ..., 'kinit_path_local': 'kinit', 'principal_name': [EMPTY], 'user': 'hdfs', 'action': ['execute'], 'hadoop_conf_dir': '/etc/hadoop/conf', 'type': 'directory'} 2016-01-30 10:08:03,178 - Directory['/var/log/springxd'] {'owner': 'spring-xd', 'group': 'hadoop', 'recursive': True, 'mode': 0775} 2016-01-30 10:08:03,179 - Directory['/var/run/springxd'] {'owner': 'spring-xd', 'group': 'hadoop', 'recursive': True} 2016-01-30 10:08:03,180 - Directory['/var/run/springxd/data'] {'owner': 'spring-xd', 'group': 'hadoop', 'recursive': True} 2016-01-30 10:08:03,180 - Directory['/etc/springxd/conf'] {'owner': 'spring-xd', 'group': 'hadoop', 'recursive': True} 2016-01-30 10:08:03,180 - Directory['/etc/springxd/conf/modules'] {'owner': 'spring-xd', 'group': 'hadoop', 'recursive': True} 2016-01-30 10:08:03,196 - File['/etc/springxd/conf/servers.yml'] {'owner': 'spring-xd', 'content': Template('servers.yml.j2'), 'group': 'hadoop'} 2016-01-30 10:08:03,200 - File['/etc/springxd/conf/modules/modules.yml'] {'owner': 'spring-xd', 'content': Template('modules.yml.j2'), 'group': 'hadoop'} 2016-01-30 10:08:03,201 - Execute['cp -r /opt/pivotal/spring-xd/xd/config/modules/job /etc/springxd/conf/modules && cp -r /opt/pivotal/spring-xd/xd/config/modules/sink /etc/springxd/conf/modules && cp -r /opt/pivotal/spring-xd/xd/config/modules/source /etc/springxd/conf/modules'] {} 2016-01-30 10:08:03,208 - Directory['/etc/springxd/conf/modules/job'] {'owner': 'spring-xd', 'group': 'hadoop', 'recursive': True} 2016-01-30 10:08:03,209 - Directory['/etc/springxd/conf/modules/sink'] {'owner': 'spring-xd', 'group': 'hadoop', 'recursive': True} 2016-01-30 10:08:03,209 - Directory['/etc/springxd/conf/modules/source'] {'owner': 'spring-xd', 'group': 'hadoop', 'recursive': True} 2016-01-30 10:08:03,214 - File['/etc/springxd/conf/xd-shell.init'] {'owner': 'spring-xd', 'content': Template('xd-shell.init.j2'), 'group': 'hadoop'} 2016-01-30 10:08:03,216 - File['/etc/springxd/conf/xd-admin-logback.groovy'] {'owner': 'spring-xd', 'content': Template('xd-admin-logback.groovy.j2'), 'group': 'hadoop'} 2016-01-30 10:08:03,219 - File['/etc/springxd/conf/xd-container-logback.groovy'] {'owner': 'spring-xd', 'content': Template('xd-container-logback.groovy.j2'), 'group': 'hadoop'} 2016-01-30 10:08:03,225 - File['/etc/springxd/conf/hadoop.properties'] {'owner': 'spring-xd', 'content': Template('hadoop.properties.j2'), 'group': 'hadoop'} 2016-01-30 10:08:03,228 - File['/etc/springxd/conf/springxd-admin-env.sh'] {'content': InlineTemplate(...), 'owner': 'spring-xd'} 2016-01-30 10:08:03,231 - File['/etc/springxd/conf/springxd-container-env.sh'] {'content': InlineTemplate(...), 'owner': 'spring-xd'} 2016-01-30 10:08:03,231 - Execute['source /etc/springxd/conf/springxd-admin-env.sh ; /opt/pivotal/spring-xd/xd/bin/xd-admin > /var/log/springxd/admin.out 2>&1'] {'wait_for_finish': False, 'user': 'spring-xd'} 2016-01-30 10:08:03,235 - Execute['/usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication && /usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication | awk {'print $1'} > /var/run/springxd/springxd_admin.pid'] {'logoutput': True, 'tries': 6, 'user': 'spring-xd', 'try_sleep': 10} 2016-01-30 10:08:03,414 - Retrying after 10 seconds. Reason: Execution of '/usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication && /usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication | awk {'print $1'} > /var/run/springxd/springxd_admin.pid' returned 1. 2016-01-30 10:08:13,650 - Retrying after 10 seconds. Reason: Execution of '/usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication && /usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication | awk {'print $1'} > /var/run/springxd/springxd_admin.pid' returned 1. 2016-01-30 10:08:23,865 - Retrying after 10 seconds. Reason: Execution of '/usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication && /usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication | awk {'print $1'} > /var/run/springxd/springxd_admin.pid' returned 1. 2016-01-30 10:08:34,134 - Retrying after 10 seconds. Reason: Execution of '/usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication && /usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication | awk {'print $1'} > /var/run/springxd/springxd_admin.pid' returned 1. 2016-01-30 10:08:44,340 - Retrying after 10 seconds. Reason: Execution of '/usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication && /usr/jdk64/jdk1.7.0_67/bin/jps -l | grep AdminServerApplication | awk {'print $1'} > /var/run/springxd/springxd_admin.pid' returned 1.

Any help is appreciated.

trisberg commented 8 years ago

Anything in /var/log/springxd/adminout that gives a clue?

AliTaher0 commented 8 years ago

@trisberg this is all I got in /var/log/springxd/admin.out


/ | (-) \ \ / / \ \ --. _ __ _ __ _ _ __ __ _ \ V /| | | | --. \ '_ | '| | ' \ / ` | / ^ | | | | // / |) | | | | | | | (| | / / \ \ |/ / __/| ./|| ||| ||, | \/ \/__/ | | **/ | || |_**/ 1.3.0.RELEASE eXtreme Data Started : AdminServerApplication Documentation: https://github.com/spring-projects/spring-xd/wiki

trisberg commented 8 years ago

Any other log files in that /var/log/springxd/ directory?