Hive / HCatalog Forum

Execution failed with exit status: 2

  • #41680
    Alex Martinez

    We are getting an error when we are trying to convert a column from hex value to dec value with DeciHexConversion function below. Any ideas on what we need to configure to make this available in HDP 1.3.2?

    hive> add jar /tmp/catalogfiles/Conversion.jar;
    hive> create temporary function conversion as ‘DeciHexConversion’;
    hive> select dev.DeviceServiceTag, si.deviceid, si.componentid, si.hwdeviceid, si.hwvendorid, si.hwsubdeviceid, si.hwsubvendorid, sc.component_description, sc.criticality_display, sc.criticality_value, sc.vendorVersion, si.SoftwareVersion, os_src.OSNAME, os_src.OSREVISION, os_src.ISWINDOWS, si.HWDESCRIPTION, si.SOFTWARETYPE,si.SOFTWAREDESCRIPTION, sc.component_type, sc.informational_url, sc.path, sc.packagetype from customer_softwareinventory si
    join customer_device dev on si.deviceid=dev.deviceid
    join device_catalog_master de on de.device_componentid=si.componentid
    join customer_operatingsystem os_src on os_src.deviceid = si.deviceid
    join softwarecomponent sc on si.softwaretype=sc.component_type and si.softwaretype=’DRVR’ and sc.xpk_softwarecomponent=de.fpk_softwarecomponent
    join model mdl on conversion(mdl.systemid, ‘D’) = dev.devicesystemid;
    Total MapReduce jobs = 1
    setting HADOOP_USER_NAME hdfs
    13/10/18 11:54:42 WARN conf.HiveConf: DEPRECATED: Configuration property hive.metastore.local no longer has any effect. Make sure to provide a valid value for hive.metastore.uris if you are connecting to a remote metastore.
    Execution log at: /tmp/hdfs/.log
    java.lang.ClassNotFoundException: DeciHexConversion
    Continuing …
    2013-10-18 11:54:42 Starting to launch local task to process map join; maximum memory = 17047748608
    org.apache.hadoop.hive.ql.exec.UDFArgumentException: The UDF implementation class ‘DeciHexConversion’ is not present in the class path
    at org.apache.hadoop.hive.ql.udf.generic.GenericUDFBridge.initialize(
    at org.apache.hadoop.hive.ql.udf.generic.GenericUDF.initializeAndFoldConstants(
    at org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator.initialize(
    Execution failed with exit status: 2
    Obtaining error information
    Task failed!
    Task ID:
    FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapredLocalTask

to create new topics or reply. | New User Registration

  • Author
  • #41762
    Yi Zhang

    Hi Alex,

    Have you tried put the jar in HIVE_AUX_JARS_PATH?


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.