Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Plain View
Pig >> mail # user >> first field utf8 formate


+
centerqi hu 2013-04-24, 02:46
Copy link to this message
-
Re: first field utf8 formate
Issue is resolved
as follow
SSCNT = FOREACH SSG {UV = DISTINCT SS.ukey; GENERATE '主动搜索uv、pv' as
scnt:chararray, FLATTEN(group) AS platform, COUNT(UV) as uv, COUNT(SS.ukey)
as pv; };
2013/4/24 centerqi hu <[EMAIL PROTECTED]>

> If  first field is utf8 formate,the output will get unrecognized code
>
> SSCNT = FOREACH SSG {UV = DISTINCT SS.ukey; GENERATE '主动搜索uv、pv' as scnt,
> FLATTEN(group) AS platform, COUNT(UV) as uv, COUNT(SS.ukey) as pv; };
> --
> [EMAIL PROTECTED]
>

--
[EMAIL PROTECTED]|齐忠
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB