Question: (1) when PHP connects Hive2 via thrift, where is the username and password set?
I see the net is a direct net of a Tsocket object, and then directly execute SQL, I try to not even! I don't think so. The user name and password must not be connected?
(2) Has anyone ever hive2 through PHP?
(3) JDBC with Java can connect to hive successfully, but using Java through Thrift server is not connected.
(4) What is the principle of PHP connection hive2?
Reply to discussion (solution)
Too advanced to understand.
--Go to Hadoop and ask the
No distinction between multiple databases, no user name password required
Well, you do not need a user name and password, but the PHP connection Hive-service2 is still not connected
I put Hive-service2 stop, start Hive-service directly can connect!!!
So the problem is: Hive2 does not seem to support thrift connection. and Hive can!