IBM Support

PI31658: UNEXPECTED BEHAVIOR WITH HIVE AND JAQL SHELLS WHEN AN INCORRECT CORE-SITE.XML IS PRESENT IN THE USER'S HOME DIRECTORY

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as Permanent restriction.

Error description

  • The hive / jaql shells seems to use the core-site.xml in the
    home directory and give unexpected results. For example if an
    invalid core-site.xml is present in the home directory you will
    see:
    
    java.lang.RuntimeException: java.lang.RuntimeException:
    org.xml.sax.SAXParseException: The content of elements must
    consist of well-formed character data or markup.
    
    or if it is a valid core-site.xml belonging to another cluster,
    the operation will make an attempt to work with that cluster.
    
    e.g.
    
    $ /opt/ibm/biginsights/hive/bin/hive -e "CREATE TABLE bitab
    (foo INT, bar STRING); LOAD DATA LOCAL INPATH
    '/opt/ibm/biginsights/hive/examples/files/kv1.txt' OVERWRITE
    INTO TABLE bitab"
    [Fatal Error] core-site.xml:26:13: The content of elements must
    consist of well-formed character data or markup.
    14/09/10 14:39:11 FATAL conf.Configuration: error parsing conf
    core-site.xml
    org.xml.sax.SAXParseException: The content of elements must
    consist of well-formed character data or markup.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
    Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at
    org.apache.hadoop.conf.Configuration.parse(Configuration.java:19
    89)
    at
    org.apache.hadoop.conf.Configuration.parse(Configuration.java:19
    77)
    at
    org.apache.hadoop.conf.Configuration.loadResource(Configuration.
    java:2048)
    at
    org.apache.hadoop.conf.Configuration.loadResources(Configuration
    .java:2001)
    at
    org.apache.hadoop.conf.Configuration.getProps(Configuration.java
    :1918)
    at
    org.apache.hadoop.conf.Configuration.get(Configuration.java:721)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:158)
    Exception in thread "main" java.lang.RuntimeException:
    org.xml.sax.SAXParseException: The content of elements must
    consist of well-formed character data or markup.
    at
    org.apache.hadoop.conf.Configuration.loadResource(Configuration.
    java:2152)
    at
    org.apache.hadoop.conf.Configuration.loadResources(Configuration
    .java:2001)
    at
    org.apache.hadoop.conf.Configuration.getProps(Configuration.java
    :1918)
    at
    org.apache.hadoop.conf.Configuration.get(Configuration.java:721)
    at org.apache.hadoop.util.RunJar.main(RunJar.java:158)
    Caused by: org.xml.sax.SAXParseException: The content of
    elements must consist of well-formed character data or markup.
    at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)
    at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown
    Source)
    at javax.xml.parsers.DocumentBuilder.parse(Unknown Source)
    at
    org.apache.hadoop.conf.Configuration.parse(Configuration.java:19
    89)
    at
    org.apache.hadoop.conf.Configuration.parse(Configuration.java:19
    77)
    at
    org.apache.hadoop.conf.Configuration.loadResource(Configuration.
    java:2048)
    ... 4 more
    

Local fix

  • Remove the conflicting core-site.xml from the user's home
    directory
    

Problem summary

  • See Error Description
    

Problem conclusion

  • Jaql component has been deprecated in BI v4.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PI31658

  • Reported component name

    INFO BIGINSIGHT

  • Reported component ID

    5725C0900

  • Reported release

    300

  • Status

    CLOSED PRS

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt / Xsystem

  • Submitted date

    2014-12-16

  • Closed date

    2016-02-23

  • Last modified date

    2016-02-23

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Modules/Macros

  • NA
    

Fix information

Applicable component levels

[{"Business Unit":{"code":"BU059","label":"IBM Software w\/o TPS"},"Product":{"code":"SSCRJT","label":"IBM Db2 Big SQL"},"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"300","Line of Business":{"code":"LOB10","label":"Data and AI"}}]

Document Information

Modified date:
25 August 2020