[ https://issues.apache.org/jira/browse/HIVE-6758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13951354#comment-13951354 ]
Johndee Burks commented on HIVE-6758: ------------------------------------- [~xuefuz] It as you say when you run without back ground it works. But if I read your attempt correctly you did not back ground at the end '&'. This works {code} [root@jrepo1-1 ~]# beeline -u "jdbc:hive2://jrepo1-2.ent.cloudera.com:10000" -n johndee -e "show tables;" scan complete in 10ms Connecting to jdbc:hive2://jrepo1-2.ent.cloudera.com:10000 Connected to: Hive (version 0.10.0) Driver: Hive (version 0.9.0-cdh4.1.2) Transaction isolation: TRANSACTION_REPEATABLE_READ +-----------+ | tab_name | +-----------+ | j1 | +-----------+ 1 row selected (0.499 seconds) Hive version 0.9.0-cdh4.1.2 by Apache Closing: org.apache.hive.jdbc.HiveConnection {code} This does not: {code} [root@jrepo1-1 ~]# beeline -u "jdbc:hive2://jrepo1-2.ent.cloudera.com:10000" -n johndee -e "show tables;" & [1] 32040 [root@jrepo1-1 ~]# [1]+ Stopped beeline -u "jdbc:hive2://jrepo1-2.ent.cloudera.com:10000" -n johndee -e "show tables;" {code} > Beeline only works in interactive mode > -------------------------------------- > > Key: HIVE-6758 > URL: https://issues.apache.org/jira/browse/HIVE-6758 > Project: Hive > Issue Type: Improvement > Components: CLI > Affects Versions: 0.11.0, 0.12.0 > Environment: CDH4.5 > Reporter: Johndee Burks > > In hive CLI you could easily integrate its use into a script and back ground > the process like this: > hive -e "some query" & > Beeline does not run when you do the same even with the -f switch. -- This message was sent by Atlassian JIRA (v6.2#6252)