Hi,

Can you post the stacktrace you are getting, I'm not sure what causes the NPE. Can you also confirm the Hadoop/Pig/OS version used? Additionally, could you check your script without the proxy or potentially without authentication - just curious whether it makes any difference.

Cheers,

On 4/23/14 9:23 AM, baskaran vaithiyanathan wrote:
i am a beginner in elasticsearch and hadoop. i am having a problem with moving 
data from hdfs into elasticsearch server
using es.net.proxy.http.host with credentials. Server secured with credentials 
using nginx proxy configuration. But when
i am trying to move data using pig script it shows null pointer exception.

My pig script is

*REGISTER elasticsearch-hadoop-1.3.0.M3/dist/elasticsearch-hadoop-1.3.0.M3.jar*

*A = load 'date' using PigStorage() as (date:datetime);*

*store A into 'doc/id' using
org.elasticsearch.hadoop.pig.EsStorage('es.net.proxy.http.host=ipaddress','es.net.proxy.http.port=portnumber','es.net.proxy.http.user=username','es.net.proxy.http.pass=password');*

I don't understand where is the problem with my script. Can anyone please help 
me?

Thanks in Advance.

--
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to
[email protected] 
<mailto:[email protected]>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/243c914a-dd48-4575-8adc-7b1b4fe3067c%40googlegroups.com
<https://groups.google.com/d/msgid/elasticsearch/243c914a-dd48-4575-8adc-7b1b4fe3067c%40googlegroups.com?utm_medium=email&utm_source=footer>.
For more options, visit https://groups.google.com/d/optout.

--
Costin

--
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/5357735C.1060505%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to