Member since
02-02-2017
106
Posts
31
Kudos Received
15
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
2265 | 09-28-2023 11:26 AM | |
1793 | 07-05-2023 03:34 PM | |
13233 | 09-22-2018 04:48 AM | |
3126 | 09-19-2018 09:15 PM | |
1923 | 09-17-2018 06:52 PM |
08-27-2018
04:49 AM
3 Kudos
@Lian Jiang Looks like default python version is 3.0, you might want to change to 2.7.x. Please refer supported python release: https://docs.hortonworks.com/HDPDocuments/Ambari-2.7.0.0/bk_ambari-installation/content/mmsr_software_reqs.html
... View more
08-24-2018
06:48 AM
@Sai Krishna Makineni Somehow the query does not work on Hive 1.2.1, Your query looks good, can you check data format in ts column? I had in below format YYYY-mm-dd HH:MM:SS
... View more
08-20-2018
06:57 PM
1 Kudo
Below query may help you with your use case? select * from test where data>(select FROM_UNIXTIME(UNIX_TIMESTAMP()-86400)) Where data column holds data in timestamp format -> YYYY-mm-dd HH:MM:SS To export using beeline below is command can be used. beeline --outputformat=csv2 -u "JDBC_CONNECT_STRING" -n USERNAME -e "select * from test where data>(select FROM_UNIXTIME(UNIX_TIMESTAMP()-86400))" > /tmp/output.txt
OR if you want to exclude headers, you can run beeline --showheader=false --outputformat=csv2 -u "JDBC_CONNECT_STRING" -n USERNAME -e "select * from test where data>(select FROM_UNIXTIME(UNIX_TIMESTAMP()-86400))" > /tmp/output.txt
... View more
08-16-2018
05:25 PM
@Gourav Gupta Please let me know if above helps? You can mark the answer as accepted.
... View more
08-16-2018
11:23 AM
1 Kudo
You're Welcome. I would start with RangerAdminRESTClient.java
... View more
08-16-2018
10:06 AM
It is a REST call to Ranger Admin. Property ranger.plugin.<plugin_name>.policy.rest.url will be used to communicate to Ranger Admin. eg: ranger.plugin.hive.policy.rest.url for Hive and by default it checks every 30 seconds with Ranger Admin to check if there are any changes with regards to current policy cached, and if so, it downloads the new policy and caches the same. Default Policy Cache location would be /etc/ranger/<CLUSTER_NAME>_<PLUGIN_COMPONENT_NAME>/policycache on the host where service is runing eg:- /etc/ranger/hdptest_hive/policycache on Hiveserver2 for my cluster.
... View more
08-16-2018
09:26 AM
1 Kudo
@Shashank V C All the plugins that use Ranger as an authorization module will cache local policy and use the same for authorization purpose. Below is an excerpt from Apache Ranger overview: Plugins are lightweight Java programs which embed within processes of each cluster component. For example, the Apache Ranger plugin for Apache Hive is embedded within Hiveserver2. These plugins pull in policies from a central server and store them locally in a file. When a user request comes through the component, these plugins intercept the request and evaluate it against the security policy. Plugins also collect data from the user request and follow a separate thread to send this data back to the audit server.
Reference: https://hortonworks.com/apache/ranger/#section_2 PS: Please mark the answer if you find it correct 🙂
... View more
08-13-2018
08:26 PM
You can use below command to install hive and use beeline brew install hive Or you can get all the required jars used by beeline command. to find the same you can launch beeline in you HDP cluster and run lsof -p <beelineclientpid> to find jars loaded and copy to local Mac. A better solution would be to use JDBC Client tool such as DBeaver or DBVisualizer for Mac
... View more
08-13-2018
06:30 PM
1 Kudo
When you connect using below connect string beeline -u "jdbc:hive2://aisvr.uildomain.com:2181/default;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2"
Username and Password will not be prompted, if you wish to pass Username and password you can use -n for Username and -p for Password, for example. beeline -u "jdbc:hive2://aisvr.uildomain.com:2181/default;serviceDiscoveryMode=zooKeeper;zooKeeperNamespace=hiveserver2" -n testuser -p passwordusertest For more information you can refer Beeline doc: https://cwiki.apache.org/confluence/display/Hive/HiveServer2+Clients
... View more
08-01-2018
11:06 AM
@Birendra
Singh Curious to know if the problem was solved?
... View more
- « Previous
- Next »