Uploaded image for project: 'CarbonData'
  1. CarbonData
  2. CARBONDATA-4058

create or insert data into the carbon table through Hive throw NPE

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.0.0, 2.1.0
    • None
    • hive-integration
    • None
    • hadoop3.1 hive 3.1

    Description

      1. error1 : insert data throw NPE
        Caused by: java.lang.NullPointerException
        at org.apache.carbondata.hive.CarbonHiveMetastoreListener.onEvent(CarbonHiveMetastoreListener.scala:70)
        at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.firePreEvent(HiveMetaStore.java:3398)
        at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.alter_table_core(HiveMetaStore.java:5259)
        ... 21 more

      error2 :create table throw NPE

      Caused by: java.lang.NullPointerException
      at org.apache.carbondata.hive.CarbonHiveMetastoreListener.onEvent(CarbonHiveMetastoreListener.scala:38)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.firePreEvent(HiveMetaStore.java:3398)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_core(HiveMetaStore.java:1968)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_core(HiveMetaStore.java:1923)
      at org.apache.hadoop.hive.metastore.HiveMetaStore$HMSHandler.create_table_with_environment_context(HiveMetaStore.java:2172)
      ... 20 more

      The reason is tableProps not containsKey "spark.sql.sources.provider"

      Attachments

        Activity

          People

            Unassigned Unassigned
            leeyong lee yong
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - 1m
                1m
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 2h 20m
                2h 20m