commit | 55af6153a1296c2813ed8534faf51a9f9a6ab7d3 | [log] [tgz] |
---|---|---|
author | ajantha-bhat <ajanthabhat@gmail.com> | Fri Mar 20 11:14:04 2020 +0530 |
committer | Jacky Li <jacky.likun@qq.com> | Sun Apr 05 18:40:46 2020 +0800 |
tree | 9fdd0f8ef39cda6f53ae0e865ab548c513027a0e | |
parent | 7ed7cf1f69b9b852c8f3a5bf41f6d2a9b5f175e7 [diff] |
[CARBONDATA-3744] Fix select query failure issue when warehouse directory is default (not configured) in cluster Why is this PR needed? select query fails when warehouse directory is default (not configured) with below callstak. 0: jdbc:hive2://localhost:10000> create table ab(age int) stored as carbondata; ---------+ Result ---------+ ---------+ No rows selected (0.093 seconds) 0: jdbc:hive2://localhost:10000> select count from ab; Error: org.apache.spark.sql.catalyst.analysis.NoSuchTableException: Table or view 'ab' not found in database 'tpch'; (state=,code=0) caused by java.io.FileNotFoundException: File hdfs://localhost:54311/home/root1/tools/spark-2.3.4-bin-hadoop2.7/spark-warehouse/tpch.db/ab/Metadata does not exist. What changes were proposed in this PR? When the spark.sql.warehouse.dir is not configured, default local file system SPARK_HOME is used. But the describe table shows with HDFS prefix in cluster. Reason is we are removing the local filesystem scheme , so when table path is read we add HDFS prefix in cluster. instead if we keep the scheme issue will not come. Does this PR introduce any user interface change? No Is any new testcase added? No. Happens only in cluster with HDFS or OBS. This closes #3675
Apache CarbonData is an indexed columnar data store solution for fast analytics on big data platform, e.g.Apache Hadoop, Apache Spark, etc.
You can find the latest CarbonData document and learn more at: http://carbondata.apache.org
CarbonData file format is a columnar store in HDFS, it has many features that a modern columnar format has, such as splittable, compression schema ,complex data type etc, and CarbonData has following unique features:
CarbonData is built using Apache Maven, to build CarbonData
This is an active open source project for everyone, and we are always open to people who want to use this system or contribute to it. This guide document introduce how to contribute to CarbonData.
To get involved in CarbonData:
Apache CarbonData is an open source project of The Apache Software Foundation (ASF).