Home Forums HDP on Linux – Installation Hive check execute fail.

Tagged: 

This topic contains 1 reply, has 2 voices, and was last updated by  Dave 9 months ago.

  • Creator
    Topic
  • #43908

    Lin WeiChing
    Member

    After installed Ambari with HDP1, I inadvertantly remove the hdfs dir “/apps” , that contains many data of various services.
    After that mistake, my Hive always fails at check execute stage, when I starting it.
    How I resolve this problem. or Is there way to reinstall components in ambari ? or recovery process provided by ambari?

    the log is as follows:
    notice: /Stage[1]/Hdp::Snappy::Package/Hdp::Snappy::Package::Ln[32]/Hdp::Exec[hdp::snappy::package::ln 32]/Exec[hdp::snappy::package::ln 32]/returns: executed successfully
    notice: /Stage[2]/Hdp-hcat::Hcat::Service_check/Exec[hcatSmoke.sh prepare]/returns: FAILED: SemanticException org.apache.hadoop.hive.ql.parse.SemanticException: org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.metastore.HiveMetaStoreClient
    notice: /Stage[2]/Hdp-hcat::Hcat::Service_check/Exec[hcatSmoke.sh prepare]/returns: FAILED: SemanticException [Error 10001]: Table not found hcatsmokeida8c00a06_date291813
    notice: /Stage[2]/Hdp-hcat::Hcat::Service_check/Exec[hcatSmoke.sh prepare]/returns: Exception in thread “main” java.lang.NoSuchMethodError: org.apache.thrift.EncodingUtils.setBit(BIZ)B
    … omitted
    err: /Stage[2]/Hdp-hcat::Hcat::Service_check/Exec[hcatSmoke.sh prepare]/returns: change from notrun to 0 failed: su – ambari-qa -c ‘sh /tmp/hcatSmoke.sh hcatsmokeida8c00a06_date291813 prepare’ returned 1 instead of one of [0] at /var/lib/ambari-agent/puppet/modules/hdp-hcat/manifests/hcat/service_check.pp:54
    notice: /Stage[2]/Hdp-hcat::Hcat::Service_check/Hdp-hadoop::Exec-hadoop[hcat::service_check::test]/Hdp::Exec[hadoop --config /etc/hadoop/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c00a06_date291813]/Anchor[hdp::exec::hadoop --config /etc/hadoop/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c00a06_date291813::begin]: Dependency Exec[hcatSmoke.sh prepare] has failures: true
    notice: /Stage[2]/Hdp-hcat::Hcat::Service_check/Hdp-hadoop::Exec-hadoop[hcat::service_check::test]/Hdp::Exec[hadoop --config /etc/hadoop/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c00a06_date291813]/Exec[hadoop --config /etc/hadoop/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c00a06_date291813]: Dependency Exec[hcatSmoke.sh prepare] has failures: true
    notice: /Stage[2]/Hdp-hcat::Hcat::Service_check/Hdp-hadoop::Exec-hadoop[hcat::service_check::test]/Hdp::Exec[hadoop --config /etc/hadoop/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c00a06_date291813]/Anchor[hdp::exec::hadoop --config /etc/hadoop/conf fs -test -e /apps/hive/warehouse/hcatsmokeida8c00a06_date291813::end]: Dependency Exec[hcatSmoke.sh prepare] has failures: true
    notice: /Stage[2]/Hdp-hcat::Hcat::Service_check/Exec[hcatSmoke.sh cleanup]: Dependency Exec[hcatSmoke.sh prepare] has failures: true

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #43980

    Dave
    Moderator

    Hi Lin,

    How did you delete this directory in HDFS?
    It is possible that it might be moved to the trash folder, so you may be able to recover it from there – unless you used -skiptrash or have emptied it.

    Thanks

    Dave

    Collapse
Viewing 1 replies (of 1 total)