Home Forums Hive / HCatalog Execution failed with exit status: 2

This topic contains 1 reply, has 2 voices, and was last updated by  Yi Zhang 1 year ago.

  • Creator
    Topic
  • #41680

    Alex Martinez
    Participant

    Hello,
    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(GenericUDFBridge.java:141)
    at org.apache.hadoop.hive.ql.udf.generic.GenericUDF.initializeAndFoldConstants(GenericUDF.java:111)
    at org.apache.hadoop.hive.ql.exec.ExprNodeGenericFuncEvaluator.initialize(ExprNodeGenericFuncEvaluator.java:141)
    Execution failed with exit status: 2
    Obtaining error information
    Task failed!
    Task ID:
    Stage-13
    Logs:
    /tmp/hdfs/hive.log
    FAILED: Execution Error, return code 2 from org.apache.hadoop.hive.ql.exec.MapredLocalTask

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.

  • Author
    Replies
  • #41762

    Yi Zhang
    Moderator

    Hi Alex,

    Have you tried put the jar in HIVE_AUX_JARS_PATH?

    Thanks,
    Yi

    Collapse
Viewing 1 replies (of 1 total)