You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by "Siddharth Wagle (JIRA)" <ji...@apache.org> on 2013/10/04 20:42:41 UTC

[jira] [Updated] (AMBARI-3460) HDFS Check failed after security enabled

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

Siddharth Wagle updated AMBARI-3460:
------------------------------------

    Attachment: AMBARI-3460.patch

> HDFS Check failed after security enabled
> ----------------------------------------
>
>                 Key: AMBARI-3460
>                 URL: https://issues.apache.org/jira/browse/AMBARI-3460
>             Project: Ambari
>          Issue Type: Bug
>          Components: agent
>    Affects Versions: 1.4.1
>            Reporter: Siddharth Wagle
>            Assignee: Siddharth Wagle
>             Fix For: 1.4.1
>
>         Attachments: AMBARI-3460.patch
>
>
> Error running hdfs service check:
> {code}
> stderr:
> None
>  stdout:
> notice: /Stage[1]/Hdp::Snmp/Hdp::Package[snmp]/Hdp::Package::Process_pkg[snmp]/Hdp::Java::Package[snmp]/Hdp::Java::Jce::Package[snmp]/Exec[jce-install snmp]/returns: executed successfully
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::check_safemode]/Exec[kinit_before_hadoop --config /etc/hadoop/conf dfsadmin -safemode get | grep OFF]/returns: executed successfully
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::check_safemode]/Hdp::Exec[hadoop --config /etc/hadoop/conf dfsadmin -safemode get | grep OFF]/Exec[hadoop --config /etc/hadoop/conf dfsadmin -safemode get | grep OFF]/returns: DEPRECATED: Use of this script to execute hdfs command is deprecated.
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::check_safemode]/Hdp::Exec[hadoop --config /etc/hadoop/conf dfsadmin -safemode get | grep OFF]/Exec[hadoop --config /etc/hadoop/conf dfsadmin -safemode get | grep OFF]/returns: Instead use the hdfs command for it.
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::check_safemode]/Hdp::Exec[hadoop --config /etc/hadoop/conf dfsadmin -safemode get | grep OFF]/Exec[hadoop --config /etc/hadoop/conf dfsadmin -safemode get | grep OFF]/returns:
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::check_safemode]/Hdp::Exec[hadoop --config /etc/hadoop/conf dfsadmin -safemode get | grep OFF]/Exec[hadoop --config /etc/hadoop/conf dfsadmin -safemode get | grep OFF]/returns: Safe mode is OFF
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::check_safemode]/Hdp::Exec[hadoop --config /etc/hadoop/conf dfsadmin -safemode get | grep OFF]/Exec[hadoop --config /etc/hadoop/conf dfsadmin -safemode get | grep OFF]/returns: executed successfully
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::create_dir]/Exec[kinit_before_hadoop --config /etc/hadoop/conf fs -mkdir /tmp ; hadoop fs -chmod -R 777 /tmp]/returns: executed successfully
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::create_file]/Exec[kinit_before_hadoop --config /etc/hadoop/conf fs -rm /tmp/id12ac2491_date160313; hadoop fs -put /etc/passwd /tmp/id12ac2491_date160313]/returns: executed successfully
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::create_file]/Hdp::Exec[hadoop --config /etc/hadoop/conf fs -rm /tmp/id12ac2491_date160313; hadoop fs -put /etc/passwd /tmp/id12ac2491_date160313]/Exec[hadoop --config /etc/hadoop/conf fs -rm /tmp/id12ac2491_date160313; hadoop fs -put /etc/passwd /tmp/id12ac2491_date160313]/returns: executed successfully
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::test]/Exec[kinit_before_hadoop --config /etc/hadoop/conf fs -test -e /tmp/id12ac2491_date160313]/returns: executed successfully
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::test]/Exec[kinit_before_hadoop --config /etc/hadoop/conf fs -test -e /tmp/id12ac2491_date160313]: Triggered 'refresh' from 1 events
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Hdp-hadoop::Exec-hadoop[hdfs::service_check::test]/Hdp::Exec[hadoop --config /etc/hadoop/conf fs -test -e /tmp/id12ac2491_date160313]/Exec[hadoop --config /etc/hadoop/conf fs -test -e /tmp/id12ac2491_date160313]: Triggered 'refresh' from 1 events
> notice: /Stage[2]/Hdp-hadoop::Journalnode::Service_check/Exec[/tmp/checkWebUI.py]/returns: Cannot access WEB UI on: http://ambari-secure-test-ha-1.cs1cloud.internal:8480
> notice: /Stage[2]/Hdp-hadoop::Journalnode::Service_check/Exec[/tmp/checkWebUI.py]/returns: Traceback (most recent call last):
> notice: /Stage[2]/Hdp-hadoop::Journalnode::Service_check/Exec[/tmp/checkWebUI.py]/returns:   File "/tmp/checkWebUI.py", line 50, in ?
> notice: /Stage[2]/Hdp-hadoop::Journalnode::Service_check/Exec[/tmp/checkWebUI.py]/returns:     main()
> notice: /Stage[2]/Hdp-hadoop::Journalnode::Service_check/Exec[/tmp/checkWebUI.py]/returns:   File "/tmp/checkWebUI.py", line 46, in main
> notice: /Stage[2]/Hdp-hadoop::Journalnode::Service_check/Exec[/tmp/checkWebUI.py]/returns:     exit(1)
> notice: /Stage[2]/Hdp-hadoop::Journalnode::Service_check/Exec[/tmp/checkWebUI.py]/returns: TypeError: 'str' object is not callable
> err: /Stage[2]/Hdp-hadoop::Journalnode::Service_check/Exec[/tmp/checkWebUI.py]/returns: change from notrun to 0 failed: su - ambari-qa -c 'python /tmp/checkWebUI.py -m ambari-secure-test-ha-1.cs1cloud.internal,ambari-secure-test-ha-2.cs1cloud.internal,ambari-secure-test-ha-3.cs1cloud.internal -p 8480' returned 1 instead of one of [0] at /var/lib/ambari-agent/puppet/modules/hdp-hadoop/manifests/hdfs/service_check.pp:145
> notice: /Stage[2]/Hdp-hadoop::Journalnode::Service_check/Anchor[hdp-hadoop::smoketest::end]: Dependency Exec[/tmp/checkWebUI.py] has failures: true
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Anchor[hdp-hadoop::hdfs::service_check::journalnode_check:end]: Dependency Exec[/tmp/checkWebUI.py] has failures: true
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Anchor[hdp-hadoop::hdfs::service_check::zkfc_check:begin]: Dependency Exec[/tmp/checkWebUI.py] has failures: true
> notice: /Stage[2]/Hdp-hadoop::Zkfc::Service_check/Anchor[hdp-hadoop::zkfc::service_check::begin]: Dependency Exec[/tmp/checkWebUI.py] has failures: true
> notice: /Stage[2]/Hdp-hadoop::Zkfc::Service_check/Exec[ls /var/run/hadoop/hdfs/hadoop-hdfs-zkfc.pid >/dev/null 2>&1 && ps `cat /var/run/hadoop/hdfs/hadoop-hdfs-zkfc.pid` >/dev/null 2>&1]: Dependency Exec[/tmp/checkWebUI.py] has failures: true
> notice: /Stage[2]/Hdp-hadoop::Zkfc::Service_check/Anchor[hdp-hadoop::zkfc::service_check::end]: Dependency Exec[/tmp/checkWebUI.py] has failures: true
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Anchor[hdp-hadoop::hdfs::service_check::zkfc_check:end]: Dependency Exec[/tmp/checkWebUI.py] has failures: true
> notice: /Stage[2]/Hdp-hadoop::Hdfs::Service_check/Anchor[hdp-hadoop::hdfs::service_check::end]: Dependency Exec[/tmp/checkWebUI.py] has failures: true
> notice: Finished catalog run in 32.80 seconds
> {code}



--
This message was sent by Atlassian JIRA
(v6.1#6144)