Member since
10-04-2016
30
Posts
3
Kudos Received
0
Solutions
06-04-2018
08:51 AM
@irfan aziz Glad that it helped! Please click on "Accept" to mark this thread as closed.
... View more
10-20-2017
01:15 AM
You can search it from the console using command $ locate *hive-hcatalog-core*.jar
... View more
09-17-2017
11:47 PM
2 Kudos
Impala does not support DATE data type, please refer to Cloudera doc: https://www.cloudera.com/documentation/enterprise/latest/topics/impala_langref_unsupported.html You mentioned you changed to timestamp, it also failed, can you please let me know how you made the change?
... View more
02-08-2017
12:40 PM
Do you have any exceptions when you run the above client? Try running the Flume agent with the extra option -Dflume.root.logger=DEBUG,console
... View more
02-02-2017
03:18 PM
1 Kudo
This should work: URL url = new URL("http://192.xxx.xx.21:44444");
HttpURLConnection conn = (HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setDoInput(true);
conn.setDoOutput(true);
OutputStream os = conn.getOutputStream();
DataOutputStream out = new DataOutputStream(conn.getOutputStream());
out.writeChars(ar);
out.flush();
out.close();
os.close();
conn.connect();
... View more
01-04-2017
04:05 PM
2 Kudos
You have to send an array of JSONEvents otherwise the handler will fail to deserialize the events. An event must have at least a body and the body must be a string. You can also add optional headers. See the event specification in the user guide. import requests
import json
a = [{'body': 'my 1st event data'}, {'body': 'my 2nd event data'}]
requests.post('http://localhost:44444', data=json.dumps(a))
You can also use GET method but still have to specify data to send.
... View more
12-29-2016
02:45 PM
Thank you so much @irfan aziz for the confirmation. I'm accepting answer given by @Michael Young. Please feel free to accept appropriate answer if required.
... View more