Member since
12-13-2016
33
Posts
3
Kudos Received
0
Solutions
12-18-2017
12:09 PM
I have an set of urls in a file. sample file: localhost:1234/aaaa/uyt localhost:1234/bbbb/grt localhost:1234/cccc/hgd etc.. how can I pass this URL dynamically from that file to invoke HTTP processor.
... View more
Labels:
- Labels:
-
Apache NiFi
12-05-2017
05:47 AM
thanks, it works for me and also install nifi 1.1.0 version, in that I have the PutElasticsearch5 processor.that also works well with transport client.
... View more
12-02-2017
08:59 AM
I using HDP 2.5 and I add a NIFI service in it, I need to send a data to Elasticsearch 5.X, when i add a processor in NIFI, the putelasticsearch5 processor is missing but it has only putelasticsearch(it supports only elasticsearc 2.X version).How can I add the Putelasticsearch5 processor in nifi.
... View more
Labels:
12-01-2017
05:55 AM
whats the difference between, when i entering (elasticsearch,solr ) in Terms to Filter On inGET TWITTER processor and this article for creating a process group
... View more
12-24-2016
08:15 AM
2 Kudos
i have a data in my HDFS,my date format in that file is Tue Dec 20 10:04:31 +0000 2016,when i create a hive table with field name created time and datatype date it store a null value.
how to change that date formate in hive?
... View more
Labels:
- Labels:
-
Apache Hadoop
-
Apache Hive
12-23-2016
12:12 PM
i get the twitter data and put those data into hdfs using nifi,it gives a data,but my date formate is in Tue Dec 20 10:04:31 +0000 2016 and i create a hive table with those twitter data.when i create that table i have created_time field and i need to set datatype as date,it shows an null value then i change the datatype as string it shows an value.then i need to transfer a that table into elasticsearch using es-hadoop but i confused what datatype i am going to use as time field. i tried string to that time filed,it shows a value but when i visualize that field in kibana,in show an error a date type is required, my query is given below: i also tried ->change my created_time field as date but i shows a null value create table if not exists tweets_text_partition(
tweet_id bigint,
created_unixtime bigint,
created_time string,
displayname string,
msg string,
fulltext string
)
row format delimited fields terminated by "|"
location "/tmp/tweets_staging";
*******************************************************************
curl -XPUT http://sandbox.hortonworks.com:9200/twitter_text1/?pretty -d'{"rels":{"properties":{"tweet_id":{"type":"bigint"},"created_unixtime":{"type":"bigint"},"created_time":{"type":"string"},"displayname":{"type":"string"},"msg":{"type":"string"},"fulltext":{"type":"string"}}}}'
***********************************************************************
ADD JAR /root/ elasticsearch-hadoop-5.1.1.jar;
ADD JAR /usr/hdp/current/hive-client/lib/commons-httpclient-3.0.1.jar;
**********************************************************************************
CREATE EXTERNAL TABLE test.twitter_es1
(
tweet_id bigint,
created_unixtime bigint,
created_time string,
displayname string,
msg string,
fulltext string
)
STORED BY 'org.elasticsearch.hadoop.hive.EsStorageHandler'
TBLPROPERTIES (
'es.resource' = 'twitterdata/data',
'es.nodes'='sandbox.hortonworks.com:9200',
'es.index.auto.create' = 'false',
'es.mapping.id'='tweet_id');
*************************************************************
INSERT OVERWRITE TABLE test.twitter_es1
SELECT
tweet_id,
created_unixtime,
created_time,
displayname,
msg,
fulltext
FROM
test.tweets_hive1;
... View more
Labels:
- Labels:
-
Apache Hadoop
-
Apache Hive
12-21-2016
07:54 AM
it resolve my problem but whenever i use the init 6 the session is
closed and i am unable to enable the sandbox.service without reboot my
vm.
... View more
12-21-2016
07:40 AM
add jar /usr/hdp/current/hive-client/lib/commons-httpclient-3.0.1.jar when i add the above jar it works fine but it wont works when i try for new table. afterwards i restart the hive session that jar works fine. how i permanently add that jar in hive
... View more
12-21-2016
07:16 AM
i am new to mongodb.plz share some tutorial links or set-up guide how to load a twitter data into mongodb and then transfer those datas into hive. i use hortonworks 2.4 in vm 5.0.20
... View more
Labels:
- Labels:
-
Apache Hive
12-19-2016
08:30 AM
thanks it works fine.
... View more