Last active
June 8, 2016 08:33
-
-
Save allwefantasy/cbba27d3eb832006e921900cf32846ca to your computer and use it in GitHub Desktop.
读取parquet 文件写为carbon format 出现了错误。
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INFO 08-06 16:24:33,484 - main Query [ | |
CREATE TABLE IF NOT EXISTS CARBON1 | |
(CUSTOMERNAME STRING, DAY DOUBLE, HITMISS STRING, HOUR DOUBLE, HTTPCODE STRING, ISP STRING, PROVINCE STRING, PTIME DOUBLE, REQUEST LONG, TRAFFIC LONG, USERID STRING) | |
STORED BY 'ORG.APACHE.CARBONDATA.FORMAT' | |
] | |
INFO 08-06 16:24:34,652 - Parsing command: CREATE TABLE IF NOT EXISTS carbon1 | |
(customerName STRING, day DOUBLE, hitMiss STRING, hour DOUBLE, httpCode STRING, isp STRING, province STRING, ptime DOUBLE, request LONG, traffic LONG, userId STRING) | |
STORED BY 'org.apache.carbondata.format' | |
NoViableAltException(162@[]) | |
at org.apache.hadoop.hive.ql.parse.HiveParser.type(HiveParser.java:38610) | |
at org.apache.hadoop.hive.ql.parse.HiveParser.colType(HiveParser.java:38367) | |
at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameType(HiveParser.java:38051) | |
at org.apache.hadoop.hive.ql.parse.HiveParser.columnNameTypeList(HiveParser.java:36203) | |
at org.apache.hadoop.hive.ql.parse.HiveParser.createTableStatement(HiveParser.java:5214) | |
at org.apache.hadoop.hive.ql.parse.HiveParser.ddlStatement(HiveParser.java:2640) | |
at org.apache.hadoop.hive.ql.parse.HiveParser.execStatement(HiveParser.java:1650) | |
at org.apache.hadoop.hive.ql.parse.HiveParser.statement(HiveParser.java:1109) | |
at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:202) | |
at org.apache.hadoop.hive.ql.parse.ParseDriver.parse(ParseDriver.java:166) | |
at org.apache.spark.sql.hive.HiveQl$.getAst(HiveQl.scala:259) | |
at org.apache.spark.sql.hive.HiveQl$.createPlan(HiveQl.scala:284) | |
at org.apache.spark.sql.hive.ExtendedHiveQlParser$$anonfun$hiveQl$1.apply(ExtendedHiveQlParser.scala:41) | |
at org.apache.spark.sql.hive.ExtendedHiveQlParser$$anonfun$hiveQl$1.apply(ExtendedHiveQlParser.scala:40) | |
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:136) | |
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:135) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242) | |
at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Failure.append(Parsers.scala:202) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222) | |
at scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891) | |
at scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891) | |
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57) | |
at scala.util.parsing.combinator.Parsers$$anon$2.apply(Parsers.scala:890) | |
at scala.util.parsing.combinator.PackratParsers$$anon$1.apply(PackratParsers.scala:110) | |
at org.apache.spark.sql.catalyst.AbstractSparkSQLParser.parse(AbstractSparkSQLParser.scala:34) | |
at org.apache.spark.sql.hive.HiveQl$.parseSql(HiveQl.scala:277) | |
at org.apache.spark.sql.hive.HiveQLDialect.parse(HiveContext.scala:62) | |
at org.apache.spark.sql.hive.CarbonSQLDialect.parse(CarbonStrategy.scala:51) | |
at org.apache.spark.sql.SQLContext$$anonfun$3.apply(SQLContext.scala:175) | |
at org.apache.spark.sql.SQLContext$$anonfun$3.apply(SQLContext.scala:175) | |
at org.apache.spark.sql.SparkSQLParser$$anonfun$org$apache$spark$sql$SparkSQLParser$$others$1.apply(SparkSQLParser.scala:115) | |
at org.apache.spark.sql.SparkSQLParser$$anonfun$org$apache$spark$sql$SparkSQLParser$$others$1.apply(SparkSQLParser.scala:114) | |
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:136) | |
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:135) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242) | |
at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Failure.append(Parsers.scala:202) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222) | |
at scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891) | |
at scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891) | |
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57) | |
at scala.util.parsing.combinator.Parsers$$anon$2.apply(Parsers.scala:890) | |
at scala.util.parsing.combinator.PackratParsers$$anon$1.apply(PackratParsers.scala:110) | |
at org.apache.spark.sql.catalyst.AbstractSparkSQLParser.parse(AbstractSparkSQLParser.scala:34) | |
at org.apache.spark.sql.SQLContext$$anonfun$2.apply(SQLContext.scala:172) | |
at org.apache.spark.sql.SQLContext$$anonfun$2.apply(SQLContext.scala:172) | |
at org.apache.spark.sql.execution.datasources.DDLParser.parse(DDLParser.scala:42) | |
at org.apache.spark.sql.SQLContext.parseSql(SQLContext.scala:195) | |
at org.apache.spark.sql.hive.HiveContext.parseSql(HiveContext.scala:279) | |
at org.apache.spark.sql.CarbonContext.sql(CarbonContext.scala:70) | |
at org.carbondata.spark.package$toCarbonDataFrame.saveAsCarbonFile(package.scala:57) | |
at org.apache.spark.sql.CarbonSource.createRelation(CarbonDatasourceRelation.scala:101) | |
at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:170) | |
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:146) | |
at $line39.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:31) | |
at $line39.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:36) | |
at $line39.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:38) | |
at $line39.$read$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:40) | |
at $line39.$read$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:42) | |
at $line39.$read$$iwC$$iwC$$iwC$$iwC.<init>(<console>:44) | |
at $line39.$read$$iwC$$iwC$$iwC.<init>(<console>:46) | |
at $line39.$read$$iwC$$iwC.<init>(<console>:48) | |
at $line39.$read$$iwC.<init>(<console>:50) | |
at $line39.$read.<init>(<console>:52) | |
at $line39.$read$.<init>(<console>:56) | |
at $line39.$read$.<clinit>(<console>) | |
at $line39.$eval$.<init>(<console>:7) | |
at $line39.$eval$.<clinit>(<console>) | |
at $line39.$eval.$print(<console>) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.apache.spark.repl.SparkIMain$ReadEvalPrint.call(SparkIMain.scala:1065) | |
at org.apache.spark.repl.SparkIMain$Request.loadAndRun(SparkIMain.scala:1340) | |
at org.apache.spark.repl.SparkIMain.loadAndRunReq$1(SparkIMain.scala:840) | |
at org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:871) | |
at org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:819) | |
at org.apache.spark.repl.SparkILoop.reallyInterpret$1(SparkILoop.scala:857) | |
at org.apache.spark.repl.SparkILoop.interpretStartingWith(SparkILoop.scala:902) | |
at org.apache.spark.repl.SparkILoop.command(SparkILoop.scala:814) | |
at org.apache.spark.repl.SparkILoop.processLine$1(SparkILoop.scala:657) | |
at org.apache.spark.repl.SparkILoop.innerLoop$1(SparkILoop.scala:665) | |
at org.apache.spark.repl.SparkILoop.org$apache$spark$repl$SparkILoop$$loop(SparkILoop.scala:670) | |
at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply$mcZ$sp(SparkILoop.scala:997) | |
at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply(SparkILoop.scala:945) | |
at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply(SparkILoop.scala:945) | |
at scala.tools.nsc.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:135) | |
at org.apache.spark.repl.SparkILoop.org$apache$spark$repl$SparkILoop$$process(SparkILoop.scala:945) | |
at org.apache.spark.repl.SparkILoop.process(SparkILoop.scala:1059) | |
at org.apache.spark.repl.Main$.main(Main.scala:31) | |
at org.apache.spark.repl.Main.main(Main.scala) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:674) | |
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180) | |
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205) | |
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120) | |
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) | |
org.apache.spark.sql.AnalysisException: cannot recognize input near 'LONG' ',' 'traffic' in column type; line 2 pos 141 | |
at org.apache.spark.sql.hive.HiveQl$.createPlan(HiveQl.scala:297) | |
at org.apache.spark.sql.hive.ExtendedHiveQlParser$$anonfun$hiveQl$1.apply(ExtendedHiveQlParser.scala:41) | |
at org.apache.spark.sql.hive.ExtendedHiveQlParser$$anonfun$hiveQl$1.apply(ExtendedHiveQlParser.scala:40) | |
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:136) | |
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:135) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242) | |
at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Failure.append(Parsers.scala:202) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222) | |
at scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891) | |
at scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891) | |
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57) | |
at scala.util.parsing.combinator.Parsers$$anon$2.apply(Parsers.scala:890) | |
at scala.util.parsing.combinator.PackratParsers$$anon$1.apply(PackratParsers.scala:110) | |
at org.apache.spark.sql.catalyst.AbstractSparkSQLParser.parse(AbstractSparkSQLParser.scala:34) | |
at org.apache.spark.sql.hive.HiveQl$.parseSql(HiveQl.scala:277) | |
at org.apache.spark.sql.hive.HiveQLDialect.parse(HiveContext.scala:62) | |
at org.apache.spark.sql.hive.CarbonSQLDialect.parse(CarbonStrategy.scala:51) | |
at org.apache.spark.sql.SQLContext$$anonfun$3.apply(SQLContext.scala:175) | |
at org.apache.spark.sql.SQLContext$$anonfun$3.apply(SQLContext.scala:175) | |
at org.apache.spark.sql.SparkSQLParser$$anonfun$org$apache$spark$sql$SparkSQLParser$$others$1.apply(SparkSQLParser.scala:115) | |
at org.apache.spark.sql.SparkSQLParser$$anonfun$org$apache$spark$sql$SparkSQLParser$$others$1.apply(SparkSQLParser.scala:114) | |
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:136) | |
at scala.util.parsing.combinator.Parsers$Success.map(Parsers.scala:135) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$map$1.apply(Parsers.scala:242) | |
at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1$$anonfun$apply$2.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Failure.append(Parsers.scala:202) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$Parser$$anonfun$append$1.apply(Parsers.scala:254) | |
at scala.util.parsing.combinator.Parsers$$anon$3.apply(Parsers.scala:222) | |
at scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891) | |
at scala.util.parsing.combinator.Parsers$$anon$2$$anonfun$apply$14.apply(Parsers.scala:891) | |
at scala.util.DynamicVariable.withValue(DynamicVariable.scala:57) | |
at scala.util.parsing.combinator.Parsers$$anon$2.apply(Parsers.scala:890) | |
at scala.util.parsing.combinator.PackratParsers$$anon$1.apply(PackratParsers.scala:110) | |
at org.apache.spark.sql.catalyst.AbstractSparkSQLParser.parse(AbstractSparkSQLParser.scala:34) | |
at org.apache.spark.sql.SQLContext$$anonfun$2.apply(SQLContext.scala:172) | |
at org.apache.spark.sql.SQLContext$$anonfun$2.apply(SQLContext.scala:172) | |
at org.apache.spark.sql.execution.datasources.DDLParser.parse(DDLParser.scala:42) | |
at org.apache.spark.sql.SQLContext.parseSql(SQLContext.scala:195) | |
at org.apache.spark.sql.hive.HiveContext.parseSql(HiveContext.scala:279) | |
at org.apache.spark.sql.CarbonContext.sql(CarbonContext.scala:70) | |
at org.carbondata.spark.package$toCarbonDataFrame.saveAsCarbonFile(package.scala:57) | |
at org.apache.spark.sql.CarbonSource.createRelation(CarbonDatasourceRelation.scala:101) | |
at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:170) | |
at org.apache.spark.sql.DataFrameWriter.save(DataFrameWriter.scala:146) | |
at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:31) | |
at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:36) | |
at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:38) | |
at $iwC$$iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:40) | |
at $iwC$$iwC$$iwC$$iwC$$iwC.<init>(<console>:42) | |
at $iwC$$iwC$$iwC$$iwC.<init>(<console>:44) | |
at $iwC$$iwC$$iwC.<init>(<console>:46) | |
at $iwC$$iwC.<init>(<console>:48) | |
at $iwC.<init>(<console>:50) | |
at <init>(<console>:52) | |
at .<init>(<console>:56) | |
at .<clinit>(<console>) | |
at .<init>(<console>:7) | |
at .<clinit>(<console>) | |
at $print(<console>) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.apache.spark.repl.SparkIMain$ReadEvalPrint.call(SparkIMain.scala:1065) | |
at org.apache.spark.repl.SparkIMain$Request.loadAndRun(SparkIMain.scala:1340) | |
at org.apache.spark.repl.SparkIMain.loadAndRunReq$1(SparkIMain.scala:840) | |
at org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:871) | |
at org.apache.spark.repl.SparkIMain.interpret(SparkIMain.scala:819) | |
at org.apache.spark.repl.SparkILoop.reallyInterpret$1(SparkILoop.scala:857) | |
at org.apache.spark.repl.SparkILoop.interpretStartingWith(SparkILoop.scala:902) | |
at org.apache.spark.repl.SparkILoop.command(SparkILoop.scala:814) | |
at org.apache.spark.repl.SparkILoop.processLine$1(SparkILoop.scala:657) | |
at org.apache.spark.repl.SparkILoop.innerLoop$1(SparkILoop.scala:665) | |
at org.apache.spark.repl.SparkILoop.org$apache$spark$repl$SparkILoop$$loop(SparkILoop.scala:670) | |
at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply$mcZ$sp(SparkILoop.scala:997) | |
at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply(SparkILoop.scala:945) | |
at org.apache.spark.repl.SparkILoop$$anonfun$org$apache$spark$repl$SparkILoop$$process$1.apply(SparkILoop.scala:945) | |
at scala.tools.nsc.util.ScalaClassLoader$.savingContextLoader(ScalaClassLoader.scala:135) | |
at org.apache.spark.repl.SparkILoop.org$apache$spark$repl$SparkILoop$$process(SparkILoop.scala:945) | |
at org.apache.spark.repl.SparkILoop.process(SparkILoop.scala:1059) | |
at org.apache.spark.repl.Main$.main(Main.scala:31) | |
at org.apache.spark.repl.Main.main(Main.scala) | |
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | |
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) | |
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) | |
at java.lang.reflect.Method.invoke(Method.java:606) | |
at org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:674) | |
at org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:180) | |
at org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:205) | |
at org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:120) | |
at org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment