Member since
02-02-2017
106
Posts
31
Kudos Received
15
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2104 | 09-28-2023 11:26 AM | |
1732 | 07-05-2023 03:34 PM | |
13092 | 09-22-2018 04:48 AM | |
3105 | 09-19-2018 09:15 PM | |
1894 | 09-17-2018 06:52 PM |
08-25-2019
12:11 PM
1 Kudo
Do you see any errors in /var/log/das/das-webapp.log? This log file would be on das-webapp host if possible please attach the file to the thread.
... View more
09-22-2018
04:48 AM
2 Kudos
@Sami Ahmad Below steps will help you in setting up ODBC.. 1. Check on what Mode my Hiveserver2 is running, From Ambari -> Hive -> Conf check property value hive.server2.transport.mode If the above is set to binary, in that case, your Hiveserver2 is running on Binary Mode i.e based on above configs it should be port 10000, otherwise, if it is HTTP then your HS2 is running on PORT 10001 for HTTP Transport mode, set transport mode as HTTP and HTTP Path as cliservice If it is binary then set Thrift Transport mode to default SASL. 2. Test the connectivity between end Client and Hiveserver2 host by using ping or telnet on the port we got from above point. I would check FQDN of HS2 host from end client and set the same in Host for ODBC. 3. Check property hive.server2.authentication value, if it is None, you can set Authentication Mechanism in ODBC config as just Username and pass the end user otherwise if it is Kerberos, you can set Kerberos for it. In case of LDAP pass username/password with auth as username and password. 4. Test Connection to HS2. Let me know if it helps?
... View more
09-19-2018
09:15 PM
@Swati Sahoo You can download Hortonworks JDBC Driver for Apache Hive from https://hortonworks.com/downloads/ -> HDP Addons, it includes all the required jars to connect to Hive via JDBC, also on top of that it also includes documentation on how you can use Simba Hive JDBC Driver. Please let me know if it helos?
... View more
09-18-2018
05:28 AM
@Hariprasanth Madhavan Please mark the answer, if you see it correct 🙂
... View more
09-17-2018
09:26 PM
1 Kudo
Here is the sample code which may help you. <html>
<body>
<?php
$conn=odbc_connect('TestODBC','hive','');
if (!$conn){
exit("Connection to the database Failed: " . $conn);
}
$sql="show databases";
$resultSet=odbc_exec($conn, $sql);
if (!$resultSet){
exit("Error!");}
echo "<table><tr>";
echo "<th>Database Name</th>";
while (odbc_fetch_row($resultSet))
{
$dbName=odbc_result($resultSet,"database_name");
echo "<tr><td>$dbName</td></tr>";
}
odbc_close($conn);
echo "</table>";
?>
</body>
</html> Note: I do not have any authentication metod set for Hive, so I have used AuthMEth=2 in my odbc.ini file as below. [TestODBC]
Description=Hortonworks Hive
Driver=/usr/lib/hive/lib/native/Linux-amd64-64/libhortonworkshiveodbc64.so
Host=HiveServer2Hotname
PORT=10000
schema=default
HiveServerType=2
AuthMech=2
ThriftTransport=0
Below is Sample Output
... View more
09-17-2018
06:52 PM
1 Kudo
@Matt Andruff Accessing Ambari, Atlas, Zeppelin would give a Annonymous access to it's UIs, and Authenticatin is managed by that component individually by default, meaning User can access the UIs using Knox and will have to provide logins configured for it. With Zeppelin 0.8 onwards which comes with HDP 3.0, there is a support for KnoxSSO which can be used to login to ZeppelinUI. Ref: https://zeppelin.apache.org/docs/0.8.0/setup/security/shiro_authentication.html#knox-sso https://issues.apache.org/jira/browse/ZEPPELIN-3090 https://knox.apache.org/books/knox-0-13-0/dev-guide.html#KnoxSSO+Integration Up till HDP 2.6.5 does not support Zeppelin KnoxSSO Integration.
... View more
09-14-2018
09:41 AM
1 Kudo
You're Welcome. I am unsure of the JIRA for which the change has been made, I believe it is https://issues.apache.org/jira/browse/RANGER-2004, https://issues.apache.org/jira/browse/ATLAS-2459 Having said that, I have tested in my lab env with 3.0 and it works 🙂
... View more
09-14-2018
09:19 AM
2 Kudos
As of HDP 2.6.5 all resources of Atlas supports * for resources only in Ranger. There is an improvement for the granular level of access control in Ranger 1.1 which comes with HDP 3.0 onwards.
... View more
09-07-2018
10:36 AM
3 Kudos
@Hariprasanth Madhavan You can connect via ODBC to Query HiveServer2. ODBC Driver can be downloaded from: https://hortonworks.com/downloads/ -> HDP Addons
... View more