Member since
03-16-2016
707
Posts
1753
Kudos Received
203
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
5126 | 09-21-2018 09:54 PM | |
6489 | 03-31-2018 03:59 AM | |
1968 | 03-31-2018 03:55 AM | |
2176 | 03-31-2018 03:31 AM | |
4817 | 03-27-2018 03:46 PM |
08-06-2016
06:45 PM
5 Kudos
@sivakumar sudhakarannair girijakumari Step 1: Build geometry-api (this is a pre-requisite for the spatial framework for hadoop)
clone this repository: https://github.com/Esri/geometry-api-java edit pom.xml to use Java 1.8, Hive 1.2 and Hadoop 2.7 save pom.xml and build with mvn Step 2: build spatial framework for hadoop
clone this repository https://github.com/Esri/spatial-framework-for-hadoop edit pom.xml to use Java 1.8, Hive 1.2 and Hadoop 2.7 save pom.xml and build with mvn Build with ant is also supported, see build.xml. Some changes are necessary.
... View more
08-06-2016
06:21 PM
4 Kudos
@sivakumar sudhakarannair girijakumari If you want the function to be available globally, across multiple sessions, you need to create a permanent function,e.g. create function ST_AsText as 'com.esri.hadoop.hive.ST_AsText'; You should issue "create function" statements via a global script. Assuming that you modified a function, in order to recreate it, you would need first to drop it. This script should be executed as part of Hive service start/restart such that functions will still be available. drop function ST_AsText as 'com.esri.hadoop.hive.ST_AsText';
... View more
08-06-2016
06:16 PM
5 Kudos
@sivakumar sudhakarannair girijakumari If you wish to use a function only during the active session, use temporary keyword in its creation statement. Examples: create temporary function ST_AsText as 'com.esri.hadoop.hive.ST_AsText'; create temporary function ST_Intersects as 'com.esri.hadoop.hive.ST_Intersects'; This is not specific for ESRI spatial functions. It works similarly for any user defined function (UDF) when invoked in Hive.
... View more
08-06-2016
06:06 PM
6 Kudos
@sivakumar sudhakarannair girijakumari ESRI spatial framework for Hadoop could use to store geometry data as text or as json. For example, you can store the following MULTIPOLYGON data as text (string in Hive, for example) 'MULTIPOLYGON (((-158.91661716771827 10.33741051185143, -67.59825779273768 10.33741051185143,-67.59825779273768 53.55389082595917, -158.91661716771827 53.55389082595917, -158.91661716771827 10.33741051185143)))' If you wish to apply one of operations supported by ESRI framework for Hive, e.g. ST_Intersects, you need first to convert text to geometry using ST_GeomFromText function. Most of the ESRI spatial functions would require you to convert text to geometry first. ESRI spatial framework for Hive supports also json. The approach is similar. You need to convert json to geometry before applying a function like ST_Intersects. More details about JSON format here: https://github.com/Esri/spatial-framework-for-hadoop/wiki/JSON-Formats
... View more
08-04-2016
03:35 AM
3 Kudos
@Ramakrishna Pratapa The best is to start by looking at /var/logs and grep for ERROR. Start with ambari-server logs. It is probably a workaround, but login to Ambari server and check ssh to all nodes. If ssh works,then put all your hosts on maintenance via Ambari and restart all your nodes (shutdown -r now). Stop your ambari service and reboot that server again. After all your servers are up, start ambari server and also the agents on all nodes and try to restart all services. You should still check the logs for ERROR (especially the section "caused by") and if you publish we can analyze them together. if this helps, pls vote/accept answer.
... View more
08-04-2016
03:24 AM
2 Kudos
@ mqureshi Go to Resource Manager UI: http://127.0.0.1:8088/cluster, click on your application_... job and then on the Attempt ID line click on Logs. You may also want to use your Tez View in Ambari http://127.0.0.1:8080/#/main/views/TEZ
... View more
08-03-2016
08:23 PM
3 Kudos
@Yan Chen\ For example, I would use the API corresponding for the Hive version. Here is an example for 0.13, which I heavily relied on the following to do something somehow similar with what you are trying to do: https://hive.apache.org/javadocs/r0.13.1/api/metastore/org/apache/hadoop/hive/metastore/HiveMetaStoreClient.html https://hive.apache.org/javadocs/r0.13.1/api/metastore/org/apache/hadoop/hive/metastore/MetaStoreUtils.html I used some resources from here: http://www.javased.com/index.php?api=org.apache.hadoop.hive.metastore.api.MetaException Let me know if this helps or you need more help.
... View more
08-03-2016
08:08 PM
5 Kudos
@Karthik Rajamanickam In embedded mode, the Collector will capture and write metrics to the local file system on the host where the Collector is running, not HDFS. As well, all the Collector runs in a single process on that host. If you are interested where the files, you could open your Ambari http://hostname:8080/#/main/services/AMBARI_METRICS/configs and check the general configs for Amabari Metrics. Usually, they go to: /var/log/ambari-metrics-collector I would suggest to use the existent API and a GET command looks like this: GET http://<ambari-metrics-collector>:6188/ws/v1/timeline/metrics?metricNames=AMBARI_METRICS.SmokeTest.FakeMetric&appId=amssmoketestfake&hostname=<hostname>&precision=seconds&startTime=1432075838000&endTime=1432075959000 More details here: https://cwiki.apache.org/confluence/display/AMBARI/Metrics+Collector+API+Specification
... View more
08-01-2016
09:26 PM
1 Kudo
@Ed Prout Split that text file by line using the SplitText processor first: https://nifi.apache.org/docs/nifi-docs/components/org.apache.nifi.processors.standard.SplitText/index.html Then you can exclude the lines you don't using a basic regex. Good example here: https://github.com/xmlking/nifi-examples/tree/master/split-route
... View more
08-01-2016
09:15 PM
2 Kudos
@Tech Guy One option is to try first to sudo as hive (or any user that had hdfs privileges) and then launch hive and execute your DDL statement $sudo su hive
$hive ... then your DDL. The reason is that you still need some hdfs write privileges for hive metadata. If the response addresses your problem, vote/accept as the best answer.
... View more