[ 
https://issues.apache.org/jira/browse/CARBONDATA-2249?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Geetika Gupta updated CARBONDATA-2249:
--------------------------------------
    Description: 
I tried to query carbondata through presto, when I tried the following command:

 

show tables

*Note*: The exception is thrown when my *carbondata-store* is on my local 
machine

It shows the following exception on the presto server:

java.lang.NoClassDefFoundError: net/jpountz/lz4/LZ4BlockInputStream
at 
org.apache.carbondata.core.datastore.impl.DefaultFileTypeProvider.getCarbonFile(DefaultFileTypeProvider.java:48)
at 
org.apache.carbondata.core.datastore.impl.FileFactory.getCarbonFile(FileFactory.java:89)
at 
org.apache.carbondata.presto.impl.CarbonTableReader.updateCarbonFile(CarbonTableReader.java:167)
at 
org.apache.carbondata.presto.impl.CarbonTableReader.updateSchemaList(CarbonTableReader.java:181)
at 
org.apache.carbondata.presto.impl.CarbonTableReader.getSchemaNames(CarbonTableReader.java:154)
at 
org.apache.carbondata.presto.CarbondataMetadata.listSchemaNamesInternal(CarbondataMetadata.java:58)
at 
org.apache.carbondata.presto.CarbondataMetadata.listSchemaNames(CarbondataMetadata.java:54)
at 
com.facebook.presto.spi.connector.ConnectorMetadata.schemaExists(ConnectorMetadata.java:64)
at 
com.facebook.presto.spi.connector.classloader.ClassLoaderSafeConnectorMetadata.schemaExists(ClassLoaderSafeConnectorMetadata.java:104)
at 
com.facebook.presto.metadata.MetadataManager.lambda$schemaExists$0(MetadataManager.java:254)
at java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
at 
java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
at 
java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:449)
at 
com.facebook.presto.metadata.MetadataManager.schemaExists(MetadataManager.java:254)
at 
com.facebook.presto.sql.rewrite.ShowQueriesRewrite$Visitor.visitShowTables(ShowQueriesRewrite.java:191)
at 
com.facebook.presto.sql.rewrite.ShowQueriesRewrite$Visitor.visitShowTables(ShowQueriesRewrite.java:151)
at com.facebook.presto.sql.tree.ShowTables.accept(ShowTables.java:64)
at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:27)
at 
com.facebook.presto.sql.rewrite.ShowQueriesRewrite.rewrite(ShowQueriesRewrite.java:148)
at 
com.facebook.presto.sql.rewrite.StatementRewrite.rewrite(StatementRewrite.java:51)
at com.facebook.presto.sql.analyzer.Analyzer.analyze(Analyzer.java:69)
at com.facebook.presto.sql.analyzer.Analyzer.analyze(Analyzer.java:64)
at 
com.facebook.presto.execution.SqlQueryExecution.doAnalyzeQuery(SqlQueryExecution.java:356)
at 
com.facebook.presto.execution.SqlQueryExecution.analyzeQuery(SqlQueryExecution.java:342)
at 
com.facebook.presto.execution.SqlQueryExecution.start(SqlQueryExecution.java:274)
at 
com.facebook.presto.execution.QueuedExecution.lambda$start$1(QueuedExecution.java:62)
at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: net.jpountz.lz4.LZ4BlockInputStream
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at 
com.facebook.presto.server.PluginClassLoader.loadClass(PluginClassLoader.java:76)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
... 37 more

  was:
I tried to query carbondata through presto, when I tried the following command:

 

show tables

 

It shows the following exception on the presto server:

java.lang.NoClassDefFoundError: net/jpountz/lz4/LZ4BlockInputStream
 at 
org.apache.carbondata.core.datastore.impl.DefaultFileTypeProvider.getCarbonFile(DefaultFileTypeProvider.java:48)
 at 
org.apache.carbondata.core.datastore.impl.FileFactory.getCarbonFile(FileFactory.java:89)
 at 
org.apache.carbondata.presto.impl.CarbonTableReader.updateCarbonFile(CarbonTableReader.java:167)
 at 
org.apache.carbondata.presto.impl.CarbonTableReader.updateSchemaList(CarbonTableReader.java:181)
 at 
org.apache.carbondata.presto.impl.CarbonTableReader.getSchemaNames(CarbonTableReader.java:154)
 at 
org.apache.carbondata.presto.CarbondataMetadata.listSchemaNamesInternal(CarbondataMetadata.java:58)
 at 
org.apache.carbondata.presto.CarbondataMetadata.listSchemaNames(CarbondataMetadata.java:54)
 at 
com.facebook.presto.spi.connector.ConnectorMetadata.schemaExists(ConnectorMetadata.java:64)
 at 
com.facebook.presto.spi.connector.classloader.ClassLoaderSafeConnectorMetadata.schemaExists(ClassLoaderSafeConnectorMetadata.java:104)
 at 
com.facebook.presto.metadata.MetadataManager.lambda$schemaExists$0(MetadataManager.java:254)
 at java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
 at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
 at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
 at 
java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
 at 
java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
 at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
 at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
 at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
 at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
 at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
 at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:449)
 at 
com.facebook.presto.metadata.MetadataManager.schemaExists(MetadataManager.java:254)
 at 
com.facebook.presto.sql.rewrite.ShowQueriesRewrite$Visitor.visitShowTables(ShowQueriesRewrite.java:191)
 at 
com.facebook.presto.sql.rewrite.ShowQueriesRewrite$Visitor.visitShowTables(ShowQueriesRewrite.java:151)
 at com.facebook.presto.sql.tree.ShowTables.accept(ShowTables.java:64)
 at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:27)
 at 
com.facebook.presto.sql.rewrite.ShowQueriesRewrite.rewrite(ShowQueriesRewrite.java:148)
 at 
com.facebook.presto.sql.rewrite.StatementRewrite.rewrite(StatementRewrite.java:51)
 at com.facebook.presto.sql.analyzer.Analyzer.analyze(Analyzer.java:69)
 at com.facebook.presto.sql.analyzer.Analyzer.analyze(Analyzer.java:64)
 at 
com.facebook.presto.execution.SqlQueryExecution.doAnalyzeQuery(SqlQueryExecution.java:356)
 at 
com.facebook.presto.execution.SqlQueryExecution.analyzeQuery(SqlQueryExecution.java:342)
 at 
com.facebook.presto.execution.SqlQueryExecution.start(SqlQueryExecution.java:274)
 at 
com.facebook.presto.execution.QueuedExecution.lambda$start$1(QueuedExecution.java:62)
 at 
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
 at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
 at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.ClassNotFoundException: net.jpountz.lz4.LZ4BlockInputStream
 at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
 at 
com.facebook.presto.server.PluginClassLoader.loadClass(PluginClassLoader.java:76)
 at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
 ... 37 more


> Not able to query data through presto
> -------------------------------------
>
>                 Key: CARBONDATA-2249
>                 URL: https://issues.apache.org/jira/browse/CARBONDATA-2249
>             Project: CarbonData
>          Issue Type: Bug
>          Components: presto-integration
>    Affects Versions: 1.4.0
>            Reporter: Geetika Gupta
>            Priority: Major
>          Time Spent: 0.5h
>  Remaining Estimate: 0h
>
> I tried to query carbondata through presto, when I tried the following 
> command:
>  
> show tables
> *Note*: The exception is thrown when my *carbondata-store* is on my local 
> machine
> It shows the following exception on the presto server:
> java.lang.NoClassDefFoundError: net/jpountz/lz4/LZ4BlockInputStream
> at 
> org.apache.carbondata.core.datastore.impl.DefaultFileTypeProvider.getCarbonFile(DefaultFileTypeProvider.java:48)
> at 
> org.apache.carbondata.core.datastore.impl.FileFactory.getCarbonFile(FileFactory.java:89)
> at 
> org.apache.carbondata.presto.impl.CarbonTableReader.updateCarbonFile(CarbonTableReader.java:167)
> at 
> org.apache.carbondata.presto.impl.CarbonTableReader.updateSchemaList(CarbonTableReader.java:181)
> at 
> org.apache.carbondata.presto.impl.CarbonTableReader.getSchemaNames(CarbonTableReader.java:154)
> at 
> org.apache.carbondata.presto.CarbondataMetadata.listSchemaNamesInternal(CarbondataMetadata.java:58)
> at 
> org.apache.carbondata.presto.CarbondataMetadata.listSchemaNames(CarbondataMetadata.java:54)
> at 
> com.facebook.presto.spi.connector.ConnectorMetadata.schemaExists(ConnectorMetadata.java:64)
> at 
> com.facebook.presto.spi.connector.classloader.ClassLoaderSafeConnectorMetadata.schemaExists(ClassLoaderSafeConnectorMetadata.java:104)
> at 
> com.facebook.presto.metadata.MetadataManager.lambda$schemaExists$0(MetadataManager.java:254)
> at java.util.stream.MatchOps$1MatchSink.accept(MatchOps.java:90)
> at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
> at java.util.Spliterators$ArraySpliterator.tryAdvance(Spliterators.java:958)
> at 
> java.util.stream.ReferencePipeline.forEachWithCancel(ReferencePipeline.java:126)
> at 
> java.util.stream.AbstractPipeline.copyIntoWithCancel(AbstractPipeline.java:498)
> at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:485)
> at 
> java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
> at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:230)
> at java.util.stream.MatchOps$MatchOp.evaluateSequential(MatchOps.java:196)
> at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
> at java.util.stream.ReferencePipeline.anyMatch(ReferencePipeline.java:449)
> at 
> com.facebook.presto.metadata.MetadataManager.schemaExists(MetadataManager.java:254)
> at 
> com.facebook.presto.sql.rewrite.ShowQueriesRewrite$Visitor.visitShowTables(ShowQueriesRewrite.java:191)
> at 
> com.facebook.presto.sql.rewrite.ShowQueriesRewrite$Visitor.visitShowTables(ShowQueriesRewrite.java:151)
> at com.facebook.presto.sql.tree.ShowTables.accept(ShowTables.java:64)
> at com.facebook.presto.sql.tree.AstVisitor.process(AstVisitor.java:27)
> at 
> com.facebook.presto.sql.rewrite.ShowQueriesRewrite.rewrite(ShowQueriesRewrite.java:148)
> at 
> com.facebook.presto.sql.rewrite.StatementRewrite.rewrite(StatementRewrite.java:51)
> at com.facebook.presto.sql.analyzer.Analyzer.analyze(Analyzer.java:69)
> at com.facebook.presto.sql.analyzer.Analyzer.analyze(Analyzer.java:64)
> at 
> com.facebook.presto.execution.SqlQueryExecution.doAnalyzeQuery(SqlQueryExecution.java:356)
> at 
> com.facebook.presto.execution.SqlQueryExecution.analyzeQuery(SqlQueryExecution.java:342)
> at 
> com.facebook.presto.execution.SqlQueryExecution.start(SqlQueryExecution.java:274)
> at 
> com.facebook.presto.execution.QueuedExecution.lambda$start$1(QueuedExecution.java:62)
> at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> at java.lang.Thread.run(Thread.java:748)
> Caused by: java.lang.ClassNotFoundException: 
> net.jpountz.lz4.LZ4BlockInputStream
> at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
> at 
> com.facebook.presto.server.PluginClassLoader.loadClass(PluginClassLoader.java:76)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
> ... 37 more



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to