Hive / HCatalog Forum

hive-testbench. ATSHook not found error

  • #57790
    Ilho Kim

    Installing and testing hive-testbench(
    faced the following error. Is this because of missing configuration or lack of lib?

    – hadoop 2.4
    – Hive 0.13.1

    [hadoop@ip-172-31-5-6 bin]$ hadoop fs -ls /user/hive/warehouse
    Found 4 items
    drwxr-xr-x – hadoop supergroup 0 2014-07-22 10:11 /user/hive/warehouse/tpcds_bin_partitioned_orc_2.db <- 생성된 DB
    drwxr-xr-x – hadoop supergroup 0 2014-07-21 21:11 /user/hive/warehouse/tpcds_text_2.db
    [hadoop@ip-172-31-5-6 bin]$


    [hadoop@ip-172-31-5-6 sample-queries-tpcds]$ pwd
    [hadoop@ip-172-31-5-6 sample-queries-tpcds]$ hive -i testbench.settings

    Logging initialized using configuration in jar:file:/home/hadoop/apache-hive-0.13.1-bin/lib/hive-common-0.13.1.jar!/
    hive> use tpcds_bin_partitioned_orc_2;
    hive.exec.pre.hooks Class not found:org.apache.hadoop.hive.ql.hooks.ATSHook
    FAILED: Hive Internal Error: java.lang.ClassNotFoundException(org.apache.hadoop.hive.ql.hooks.ATSHook)
    java.lang.ClassNotFoundException: org.apache.hadoop.hive.ql.hooks.ATSHook
    at Method)
    at java.lang.ClassLoader.loadClass(
    at java.lang.ClassLoader.loadClass(
    at java.lang.Class.forName0(Native Method)
    at java.lang.Class.forName(
    at org.apache.hadoop.hive.ql.hooks.HookUtils.getHooks(
    at org.apache.hadoop.hive.ql.Driver.getHooks(
    at org.apache.hadoop.hive.ql.Driver.getHooks(
    at org.apache.hadoop.hive.ql.Driver.execute(
    at org.apache.hadoop.hive.ql.Driver.runInternal(
    at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(
    at org.apache.hadoop.hive.cli.CliDriver.processCmd(
    at org.apache.hadoop.hive.cli.CliDriver.processLine(
    at org.apache.hadoop.hive.cli.CliDriver.executeDriver(
    at org.apache.hadoop.hive.cli.CliDriver.main(
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(
    at java.lang.reflect.Method.invoke(
    at org.apache.hadoop.util.RunJar.main(


to create new topics or reply. | New User Registration

  • Author
  • #57794
    Carter Shanklin

    Comment out these three lines, either by removing them or adding two dashes (–) to the beginning:

    set hive.exec.failure.hooks=org.apache.hadoop.hive.ql.hooks.ATSHook;
    set hive.exec.pre.hooks=org.apache.hadoop.hive.ql.hooks.ATSHook;

    I will probably remove these lines from the settings file for better compatibility with other Hadoop versions.

    Carter Shanklin

    They should be commented out from testbench.settings

You must be to reply to this topic. | Create Account

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.