java.sql.SQLException: Field 'IS_STOREDASSUBDIRECTORIES' doesn't have a default value
2013-04-29 11:32
441 查看
今天在添加表分区遇到如下的异常:
ALTER TABLE s_search_log ADD IF NOT EXISTS PARTITION (day_id =20130428, PLAT_TYPE=3)
LOCATION '/data/stg/s_search_log/20130428/3/';
异常:
FAILED: Error in metadata: javax.jdo.JDODataStoreException: Insert of object "org.apache.hadoop.hive.metastore.model.MStorageDescriptor@1ad997f9" using statement "INSERT
INTO `SDS` (`SD_ID`,`IS_COMPRESSED`,`INPUT_FORMAT`,`NUM_BUCKETS`,`SERDE_ID`,`LOCATION`,`CD_ID`,`OUTPUT_FORMAT`) VALUES (?,?,?,?,?,?,?,?)" failed : Field 'IS_STOREDASSUBDIRECTORIES' doesn't have a default value
NestedThrowables:
java.sql.SQLException: Field 'IS_STOREDASSUBDIRECTORIES' doesn't have a default value
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
解决方法:
http://mail-archives.apache.org/mod_mbox/hive-dev/201302.mbox/%3CJIRA.12631340.1360272250513.300651.1361168954618@arcas%3E
ALTER TABLE s_search_log ADD IF NOT EXISTS PARTITION (day_id =20130428, PLAT_TYPE=3)
LOCATION '/data/stg/s_search_log/20130428/3/';
异常:
FAILED: Error in metadata: javax.jdo.JDODataStoreException: Insert of object "org.apache.hadoop.hive.metastore.model.MStorageDescriptor@1ad997f9" using statement "INSERT
INTO `SDS` (`SD_ID`,`IS_COMPRESSED`,`INPUT_FORMAT`,`NUM_BUCKETS`,`SERDE_ID`,`LOCATION`,`CD_ID`,`OUTPUT_FORMAT`) VALUES (?,?,?,?,?,?,?,?)" failed : Field 'IS_STOREDASSUBDIRECTORIES' doesn't have a default value
NestedThrowables:
java.sql.SQLException: Field 'IS_STOREDASSUBDIRECTORIES' doesn't have a default value
FAILED: Execution Error, return code 1 from org.apache.hadoop.hive.ql.exec.DDLTask
解决方法:
http://mail-archives.apache.org/mod_mbox/hive-dev/201302.mbox/%3CJIRA.12631340.1360272250513.300651.1361168954618@arcas%3E
相关文章推荐
- Caused by: java.sql.SQLException: Field 'id' doesn't have a default value .
- Caused by: java.sql.SQLException: Field 'id' doesn't have a default value
- hive ava.sql.SQLException: Field 'IS_STOREDASSUBDIRECTORIES' doesn't have a default value
- java.sql.SQLException: Field 'name' doesn't have a default value
- java.sql.SQLException: Field 'id' doesn't have a default value
- java.sql.SQLException: General error, message from server: "Field 'ID' doesn't have a default value
- java.sql.SQLException: Field 'id' doesn't have a default value解决方案
- java.sql.SQLException: Field 'id' doesn't have a default value
- Caused by: java.sql.SQLException: Field 'stu_id' doesn't have a default value
- java.sql.SQLException: Field 'id' doesn't have a default value
- Caused by: java.sql.SQLException: Field 'id' doesn't have a default value
- ### Cause: java.sql.SQLException: Field 'id' doesn't have a default value
- Caused by: java.sql.SQLException: Field 'id' doesn't have a default value
- java.sql.SQLException: Field 'ID' doesn't have a default value(数据库移植)
- java.sql.SQLException: Field 'id' doesn't have a default value解决方法
- 自增长:java.sql.SQLException: Field 'id' doesn't have a default value
- java.sql.SQLException: Field 'id' doesn't have a default value
- 在hibernate+mysql:Field 'id' doesn't have a default value两种解决办法
- java.sql.SQLException:Column count doesn't match value count at row 1
- Caused by: java.sql.SQLException: Value '0000-00-00 00:00:00' can not be represented as java.sql.Tim