You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hive.apache.org by "lushuai (JIRA)" <ji...@apache.org> on 2016/05/14 06:50:12 UTC

[jira] [Commented] (HIVE-13761) Select data from no Encrypt table where my cluste enable Encrypt

    [ https://issues.apache.org/jira/browse/HIVE-13761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15283453#comment-15283453 ] 

lushuai commented on HIVE-13761:
--------------------------------

use beeline to select table :
 select * from tbl02;  
Error: Error while compiling statement: FAILED: SemanticException Unable to determine if hdfs://ns1/user/hive/warehouse/acl_db.db/tbl02 is encrypted: java.io.IOExc

but when I  exit reconnect the beeline :
 !connect jdbc:hive2://host_name:10000/default;

it is ok.




> Select data from no Encrypt table  where my cluste enable Encrypt 
> ------------------------------------------------------------------
>
>                 Key: HIVE-13761
>                 URL: https://issues.apache.org/jira/browse/HIVE-13761
>             Project: Hive
>          Issue Type: Bug
>          Components: Beeline, Encryption
>    Affects Versions: 1.2.1
>            Reporter: lushuai
>
> 2016-05-14 14:43:35,962 WARN  [HiveServer2-Handler-Pool: Thread-312]: thrift.ThriftCLIService (ThriftCLIService.java:ExecuteStatement(492)) - Error executing statement: 
> org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: SemanticException Unable to determine if hdfs://ns1/user/hive/warehouse/acl_db.db/tbl02 is encrypted: java.io.IOException: Filesystem closed
>         at org.apache.hive.service.cli.operation.Operation.toSQLException(Operation.java:315)
>         at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:112)
>         at org.apache.hive.service.cli.operation.SQLOperation.runInternal(SQLOperation.java:181)
>         at org.apache.hive.service.cli.operation.Operation.run(Operation.java:257)
>         at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementInternal(HiveSessionImpl.java:388)
>         at org.apache.hive.service.cli.session.HiveSessionImpl.executeStatementAsync(HiveSessionImpl.java:375)
>         at org.apache.hive.service.cli.CLIService.executeStatementAsync(CLIService.java:274)
>         at org.apache.hive.service.cli.thrift.ThriftCLIService.ExecuteStatement(ThriftCLIService.java:486)
>         at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1313)
>         at org.apache.hive.service.cli.thrift.TCLIService$Processor$ExecuteStatement.getResult(TCLIService.java:1298)
>         at org.apache.thrift.ProcessFunction.process(ProcessFunction.java:39)
>         at org.apache.thrift.TBaseProcessor.process(TBaseProcessor.java:39)
>         at org.apache.hadoop.hive.thrift.HadoopThriftAuthBridge$Server$TUGIAssumingProcessor.process(HadoopThriftAuthBridge.java:692)
>         at org.apache.thrift.server.TThreadPoolServer$WorkerProcess.run(TThreadPoolServer.java:285)
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>         at java.lang.Thread.run(Thread.java:745)
> Caused by: org.apache.hadoop.hive.ql.parse.SemanticException: Unable to determine if hdfs://ns1/user/hive/warehouse/acl_db.db/tbl02 is encrypted: java.io.IOException: Filesystem closed
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getMetaData(SemanticAnalyzer.java:1868)
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getMetaData(SemanticAnalyzer.java:1545)
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genResolvedParseTree(SemanticAnalyzer.java:10077)
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:10128)
>         at org.apache.hadoop.hive.ql.parse.CalcitePlanner.analyzeInternal(CalcitePlanner.java:209)
>         at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:227)
>         at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:424)
>         at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:308)
>         at org.apache.hadoop.hive.ql.Driver.compileInternal(Driver.java:1122)
>         at org.apache.hadoop.hive.ql.Driver.compileAndRespond(Driver.java:1116)
>         at org.apache.hive.service.cli.operation.SQLOperation.prepare(SQLOperation.java:110)
>         ... 15 more
> Caused by: org.apache.hadoop.hive.ql.metadata.HiveException: Unable to determine if hdfs://ns1/user/hive/warehouse/acl_db.db/tbl02 is encrypted: java.io.IOException: Filesystem closed
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.isPathEncrypted(SemanticAnalyzer.java:1888)
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getStrongestEncryptedTablePath(SemanticAnalyzer.java:1965)
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getStagingDirectoryPathname(SemanticAnalyzer.java:1997)
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getMetaData(SemanticAnalyzer.java:1810)
>         ... 25 more
> Caused by: java.io.IOException: Filesystem closed
>         at org.apache.hadoop.hdfs.DFSClient.checkOpen(DFSClient.java:798)
>         at org.apache.hadoop.hdfs.DFSClient.getEZForPath(DFSClient.java:2966)
>         at org.apache.hadoop.hdfs.DistributedFileSystem.getEZForPath(DistributedFileSystem.java:1906)
>         at org.apache.hadoop.hdfs.client.HdfsAdmin.getEncryptionZoneForPath(HdfsAdmin.java:262)
>         at org.apache.hadoop.hive.shims.Hadoop23Shims$HdfsEncryptionShim.isPathEncrypted(Hadoop23Shims.java:1221)
>         at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.isPathEncrypted(SemanticAnalyzer.java:1884)
>         ... 28 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)