The Hortonworks Community Connection is now live. A completely rebuilt Q&A forum, Knowledge Base, Code Hub and more, backed by the experts in the industry.

You will be redirected here in 10 seconds. If your are not redirected, click here to visit the new site.

The legacy Hortonworks Forum is now closed. You can view a read-only version of the former site by clicking here. The site will be taken offline on January 31,2016

HDP on Linux – Installation Forum

Hive check execute fail.

  • #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

  • 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

The forum ‘HDP on Linux – Installation’ is closed to new topics and replies.

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.