Hi I am using pig-0.11 version in cloudera *This is the code i am using to decode content in file.
DEFINE UriDecode InvokeForString('org.apache.commons.codec.net.URLCodec.decode', 'String String'); a= load '/user/olap/data/wiki_data/test_decode_file' as (encoded:chararray); b= foreach a generate UriDecode($0,'utf-8'); store b into '/user/olap/data/wiki_data/output_decode'; *
The error is am receiving is java.lang.NullPointerException
Apache Lucene, Apache Solr and all other Apache Software Foundation projects and their respective logos are trademarks of the Apache Software Foundation.
Elasticsearch, Kibana, Logstash, and Beats are trademarks of Elasticsearch BV, registered in the U.S. and in other countries. This site and Sematext Group is in no way affiliated with Elasticsearch BV.
Service operated by Sematext