[ 
https://issues.apache.org/jira/browse/AMBARI-15451?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chen He updated AMBARI-15451:
-----------------------------
    Description: 
Using ambari to start service. Actually Ambari is using following python 
scripts to do the namenode format:
/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py

Only has: 
INFO 2016-03-17 00:42:16,207 PythonExecutor.py:114 - Command 
['/usr/bin/python2.6',
 
'/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py',
 'START',
 '/var/lib/ambari-agent/data/command-70.json',
 '/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package',
 '/var/lib/ambari-agent/data/structured-out-70.json',
 'INFO',
 '/var/lib/ambari-agent/tmp'] failed with exitcode=1

Dig deep, figure out it is ""para.dfs_ha_enabled"" not in good format. It 
should provide a little bit more information than just a "exitcode=1" or at 
least exception handling

  was:
Using ambari to start service. Actually Ambari is using following python 
scripts to do the namenode format:
/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py

Only has: 
INFO 2016-03-17 00:42:16,207 PythonExecutor.py:114 - Command 
['/usr/bin/python2.6',
 
'/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py',
 'START',
 '/var/lib/ambari-agent/data/command-70.json',
 '/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package',
 '/var/lib/ambari-agent/data/structured-out-70.json',
 'INFO',
 '/var/lib/ambari-agent/tmp'] failed with exitcode=1

Dig deep figure out is is para.dfs_ha_enabled is not in good format. It should 
provide a little bit more information than just a "exitcode=1"


> Exception handling is needed when format namenode in hdfs_namenode.py
> ---------------------------------------------------------------------
>
>                 Key: AMBARI-15451
>                 URL: https://issues.apache.org/jira/browse/AMBARI-15451
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-agent
>            Reporter: Chen He
>
> Using ambari to start service. Actually Ambari is using following python 
> scripts to do the namenode format:
> /var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/hdfs_namenode.py
> Only has: 
> INFO 2016-03-17 00:42:16,207 PythonExecutor.py:114 - Command 
> ['/usr/bin/python2.6',
>  
> '/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package/scripts/namenode.py',
>  'START',
>  '/var/lib/ambari-agent/data/command-70.json',
>  '/var/lib/ambari-agent/cache/common-services/HDFS/2.1.0.2.0/package',
>  '/var/lib/ambari-agent/data/structured-out-70.json',
>  'INFO',
>  '/var/lib/ambari-agent/tmp'] failed with exitcode=1
> Dig deep, figure out it is ""para.dfs_ha_enabled"" not in good format. It 
> should provide a little bit more information than just a "exitcode=1" or at 
> least exception handling



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to