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

Drop Table for carbon throws NPE with HDFS lock type.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 0.2.0-incubating
    • Fix Version/s: 1.0.0-incubating
    • Component/s: None
    • Labels:
      None

      Description

      Start version :- 1.6.2
      Start carbon thrift server
      set HDFS LOCK Type

      drop table from beeline
      0: jdbc:hive2://hacluster> drop table oscon_new_1;
      Error: java.lang.NullPointerException (state=,code=0)

      Error in thrftserver

      17/01/04 20:40:08 AUDIT DropTableCommand: [hadoop-master][anonymous][Thread-182]Deleted table [oscon_new_1] under database [default]
      17/01/04 20:40:08 ERROR AbstractDFSCarbonFile: pool-25-thread-12 Exception occured:File does not exist: hdfs://hacluster/opt/CarbonStore/default/oscon_new_1/droptable.lock
      17/01/04 20:40:08 ERROR SparkExecuteStatementOperation: Error executing query, currentState RUNNING,
      java.lang.NullPointerException
      at org.apache.carbondata.core.datastorage.store.filesystem.AbstractDFSCarbonFile.delete(AbstractDFSCarbonFile.java:128)
      at org.apache.carbondata.lcm.locks.HdfsFileLock.unlock(HdfsFileLock.java:110)
      at org.apache.spark.sql.execution.command.DropTableCommand.run(carbonTableSchema.scala:613)
      at org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult$lzycompute(commands.scala:58)
      at org.apache.spark.sql.execution.ExecutedCommand.sideEffectResult(commands.scala:56)

      Note :- lock file and data are deleted successfully but in beeline it throws ERROR message instead of success.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                ravi.pesala Ravindra Pesala
                Reporter:
                Bjangir Babulal
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

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