c***z 发帖数: 6348 | 1 You need the following things:
1. An editor, I use sublime2, the cloudera package uses Gedit
2. A cluster with Pig installed at the edge nodes, you can use the VM in the
cloudera package
3. A file transfer to move Pig code from local drive (if you edit locally)
to edge node, I use Winscp, the cloudera package uses Hue
4. A way to run the code at edge node, I use putty, the cloudera package
uses Hue
My work flow: write Pig code locally using sublime2, upload code to edge
node using winscp, run co... 阅读全帖 |
|
r*****d 发帖数: 346 | 2 我又要请教大家一个问题了,,
我在试验怎么用Pig UDF in Python,
当运行:
grunt>register '/absolute_path_to/my_first_udf.py' using jython as myfuncs;
得到:
ERROR org.apache.pig.tools.grunt.Grunt - ERROR 2999: Unexpected internal
error. null
Details at pig_1400616625260.log
我查了下log file, 里面写着:
Pig Stack Trace
---------------
ERROR 2999: Unexpected internal error. null
SyntaxError: ("mismatched input '' expecting DEDENT", ('', 5,
20, ' return decoratorn'))
我比较确定.py file没问题。
谁知道这是怎么回事?谢谢了! |
|
t*********u 发帖数: 26311 | 3 data3 = FOREACH data2 GENERATE group, SUM(data1.cpc) as cost:int;
data4 = ORDER data3 BY cost ASC;
如果
DESCRIBE data4;
不会报错
但是换成 DUMP data4;
就报错
2014-06-11 17:22:26,525 ERROR org.apache.pig.tools.pigstats.SimplePigStats:
ERROR: java.lang.RuntimeException: java.lang.ClassCastException: java.lang.L
ong cannot be cast to java.lang.Integer
2014-06-11 17:22:26,525 ERROR org.apache.pig.tools.pigstats.PigStatsUtil: 1
map reduce job(s) failed!
2014-06-11 17:22:26,573 ERROR org.apache.pig.tools.grunt.Gru... 阅读全帖 |
|
r*****d 发帖数: 346 | 4 data management组就有一个是dba出身的,他用hive不用pig.
我感觉管理数据“新陈代谢”的整个流程跟business report,
hive都能有效完成任务,不用pig没关系,
不过管理数据确实要用cassandra等。。
但如果需要non-vanilla计算,数据挖掘,就要用pig. |
|
k****o 发帖数: 76 | 5 Pig里面可以define某一列为mapper key吗? 比如load之后:
data=load '$INPUT' as (AA, BB, CC);
我经常需要garantee $OUTPUT里面相同的BB要在同一个reducer... partition by 可以
,但是
要自己定义hash function,有没有可以快速定义哪一个是mapper key的?pig
默认是random hashing的吧?目前知道
join by BB之后的BB自动默认为mapper key,但是order by 和group by 都不garentee
。。。
当然,实在不行自己写个mapreduce直接输入输出就可以,但是pig应该有这种不需要脱
裤子放屁的方式吧?
HIVE里面有方法也可以!
多谢大家! |
|
g**1 发帖数: 10330 | 6 http://www.dailymail.co.uk/news/article-2483833/LAX-airport-sho
Pictured: LAX gunman who ranted about wanting to kill 'pigs and TSA' and
sent text to brother saying he was thinking of killing himself before
launching rampage
Shooter identified as U.S. citizen and Los Angeles resident Paul Ciancia
Texted brother Friday morning saying he was thinking of taking his own life
His mother, Susan, died in 2009 after long battle with MS
Father, also called Paul, runs an autoshop in Pennsville, New Jerse... 阅读全帖 |
|
a**********s 发帖数: 50 | 7 http://blogs.abcnews.com/politicalpunch/2008/09/obama-says-mc-1.html
Obama Says McCain Is Offering Fake Change: 'You Can Put Lipstick on a Pig'
September 09, 2008 6:10 PM
LEBANON, Va. -- "That's not change," Sen. Barack Obama, D-Ill., said of what
Sen. John McCain, R-Ariz., is offering.
"You can put lipstick on a pig," Obama said, as the crowd rose and applauded
, some of them no doubt thinking he may have been alluding to Alaska Gov.
Sarah Palin's ad lib during her vice presidential nomination |
|
l****z 发帖数: 29846 | 8 by Lands’nGrooves
While this story of yet more buffoonery by V.P. Biden is making the rounds
today…
The Gateway Pundit-
Vice President Joe Biden suggested a new image to associate with Republicans
who opposed Democratic efforts to toughen regulations on Wall Street,
characterizing them as ” squealing pigs.”
I’m afraid of what will be lost is the complete lie that Crazy Uncle Joe
would like the electorate to believe -
“…over the objections of Romney and all his allies, we passed some of the
tough... 阅读全帖 |
|
l****z 发帖数: 29846 | 9 Mostly Peaceful Savages Protest Zimmerman Acquittal: “F- the police”; “
Kill Pigs” »
by Jammie
Because nothing quite says “outrage” like a call for the murder of the
police.
In San Francisco, demonstrators marched through the Mission District
after gathering at the 24th Street Mission BART Station. Hundreds marched
down Valencia Street, chanting “Justice for Trayvon Martin.”
The crowd dispersed peacefully, and officers will “maintain a presence
in the Mission District for the time b... 阅读全帖 |
|
|
w******d 发帖数: 159 | 11 Pigs in a blanket
Hi, Mom, do you know that you made a very typical American afterschool snack
-- pigs in a blanket.
这是宝贝放学后冲到厨房食指大动口水横流说的的第一句话。啊? 看来真是活到老,
学到老, 原来小香肠面包还有这么可爱的小名。
做法很简单。。。
发一团烤面包的面, 发好后,擀成大片儿,再切成大小适中的三角形(哈哈,就是
blanket了)。
用‘blanket’把‘小猪猪’一个个裹起来,刷上蛋液。
烤箱预热375F后烤大约18 分钟。
宝贝爱吃辣,所以做了几个加强版的‘blanket’,就是先把‘小猪’塞进辣椒,再裹
点儿cheese,然后才进被窝。 唉,我天才的发明创造以及想象力, 为什么只在厨房
里得以体现?!
为了贯彻‘百花齐放’的方针, 用另外一半面做了甜花生酱馅儿的小圆面包,最后馅
儿没了,只好编了个麻花辫儿蒙混过关。
上两张图, 第一张是准备阶段, 第二张是成品图。 |
|
c**i 发帖数: 6973 | 12 (1) Marshall Eckblad, Big Litters Put Farms in Hog Heaven, Wall Street
Journal, July 19, 2011.
http://online.wsj.com/article/SB1000142
4052702303795304576454290739070946.html
Quote:
"They've [Producers have] continued selectively breeding for the most
productive females, made advances in disease control and generally keep sows
in special stalls to prevent them from crushing and killing their offspring.
"Experts say there's no identifiable limit to how much bigger the healthy
litter can grow. Af... 阅读全帖 |
|
H*********r 发帖数: 659 | 13 【 以下文字转载自 Virginia 讨论区 】
发信人: HouLoneStar (LoneStar), 信区: Virginia
标 题: who are the victims of Pig' s crime
发信站: BBS 未名空间站 (Sat Jan 24 03:19:40 2009)
1. Immediate victims are the girl and her family
2. Pig's parents and his family in China
3. Those chinese students who will apply for VT this year and in next 2-5
years |
|
|
|
g*******1 发帖数: 826 | 16 【 以下文字转载自 NextGeneration 讨论区 】
发信人: guiyiffs1 (Gyffs), 信区: NextGeneration
标 题: 赠送peppa pig sticker
发信站: BBS 未名空间站 (Fri Jan 19 18:08:37 2018, 美东)
手上有peppa pig stickers,小孩子喜欢的那些,有需要的人可以站内联系。
免费送的加免费寄。
谢谢 |
|
w*******o 发帖数: 6125 | 17 PIGS不行了(PIGS: Portugal, Italy, Greece,Spain)
大家都看的BRIC了(BRIC:Brazil, Russia, India, China) |
|
y*******w 发帖数: 5917 | 18 PIGS什么时候行过么?PIGS不过是做一些低级产业的边角料,哪里像BRIC全面控制低级
产业, |
|
a*******9 发帖数: 2265 | 19 pig-bull-bear's conference call -- 2010-03-05
.
bull said : good data today. I am the returned King. Everyone Hold.
Pig said : finially I can have a break, I am a happy piggeee, don't like too
much work. I know monday will be the king's data.
bear said : Retreat. I will be back. See you next around. |
|
a*******9 发帖数: 2265 | 20 WIN-WIN situation
Pigs and Bulls are happy,
some bulls are still excited, but others are getting used with the uptrend
bears are really disappointed
bull said : Gr~eat day. We trapped them yesterday! Bears are losing their
group inch by inch. we are the King.
Pig said : Not matter what, I am the leader of the DOW and SP! I know
Bulls will take the places, but today I am still the best.
bear said : I am waiting for --
"半夜传来的一声冷笑“。
next day I will take over.
Actually today should be the bears' day |
|
a*******9 发帖数: 2265 | 21 Pigs and Bulls are happy and happy, they have a party overnight.
bears was tried but missed and disappointed again.
Pig said : Today I am still the best, 3 indices all grow less than .4%. I
will enjoy it if I am still in the seat.
The king of bulls said : I know some of bulls are afraid of bears now, you
are thinking that it's too high, should be fell down. But everything is
under control. Good news came out, all indices are fixed. What are we
waiting for?
Follow my command, Charge, Bulls, Charg |
|
a*******9 发帖数: 2265 | 22 Now Pigs and Bears are together.
Some bulls is disappointed
Pig said : I am always the best, Indices are mixed with small small red
and green. I am the long live King.
bear said : I am good? I can not believe Still there are fans and
supporters. Today It shows my power. the bulls can not make any move. I
am totally on control today.
the Minister of bulls said : its too earlier to Charge, my Majesty. too
much bulls died with your command. looks we lose the field. can we
stand?
the King of bul |
|
a*******9 发帖数: 2265 | 23 pig-bull-bear's conference call -- 2010-04-08
1180 is under Bulls' feet for 4 days.
Pigs said: Today's share is so cheap. but I choose to wait for another day,
I know 1200 is nothing for bulls.
The King of Bulls said: Today is just for yesterday, we don't want to go so
fast.
Bears said: you still can not say if it's a header or not, we already made
the left shoulder.
bad news came again, but bull hold well. 1200 is nothing in bulls' eye.
they want more. |
|
a*******9 发帖数: 2265 | 24 1180 is under Bulls' feet for 5 days. Dow 11000 has almost been takeover.
The King of Bulls said: Do we take the 1200?
the minster of bulls said: No , Royal Highness.
“Then, … … let our troops know. don’t charge. Stand Still. Live well”,
the king said.
Pigs said: I don't dare to buy here, I don't sell neither, I am the Pig,
always happen.
Bears said: Today looks new high. closer to our HOT SPOT, north pole. Do
you want to fight? the Marshal of Bears said: it's not time. we need wait to
anoth |
|
a*******9 发帖数: 2265 | 25 pig-bull-bear's conference call -- 2010-04-20
Dow 11000 is under Bulls' feet for 6 day. SP 1200 is token over by bulls
today.
the minster of bulls said: “Enjoy your Lunch, My Majesty. ”
the king said, “tons of BaNiu thought we will be fail. But they are so
sample, sometimes naive. They don’t know who is behind us nowadays. ”
the Marshal of Bears said: My king! Why did you leave us alone. we are not
traitors, we even can’t cover our short. You are our ONLY HOPE”
Pig A said:” Am I smart? I didn’ |
|
a*******9 发帖数: 2265 | 26 Pig-bull-bear's conference call -- 2010-05-06
Trend is turns to bears. Hoho, have you ever see polar bears went to Mexico
SEA?
Looks all of Bears, Pigs, and Bull are excited by today’s “Accident”
King of Bears said: “Mexico is hot, not bad to have vacation here.”
Marshal of Bears said: “Actually It’s not my idea, a trader’s finger got
some Mental problem.”
King of Bears said: “How silly it’s. but it’s not bad.”
Solider of Bears said: “Can we stay here long?”
Marshal of Bears said: “Shut up, and |
|
l********t 发帖数: 254 | 27 conclusion:
pig A=miggie
pig B=afang |
|
w*******o 发帖数: 6125 | 28 "Bulls make money, bears make money, pigs get slaughtered"
花街要将PIGS一个一个Slaughter,半年一次?
2010.05 Greece
2010.11 Ireland
2011.05 Portugal?
20xx.xx Spain? |
|
k**********4 发帖数: 16092 | 29 i have some idea about who it is, i think it
is a female pig. |
|
w********8 发帖数: 1671 | 30 没有big就会是Pig...pig了还会big? |
|
q********c 发帖数: 1774 | 31 Pigs 其实挺聪明的. LZ 的语气让人感觉他还不如pig. |
|
w********6 发帖数: 12977 | 32 local 50mph限速,下坡的时候换道,加速了一下,立即发现远处的pig,踩刹车降速,
还是看见骑摩托车的pig闪灯警笛大作跟上。。。告诉我超速11迈,61mph。
我记得有人说加州的警察出庭有钱赚,还是警察不出庭还是败诉,有人知道么?
正在考虑是否plea not guilty,唉,加州没钱了,满街都是猪猡埋伏着罚钱。 |
|
w********e 发帖数: 527 | 33 pig出庭有钱的,所以不要先直接出庭,先written plea no guilty, 要恶心一下pig,
让他也写写信回法官,他不写你就赢了。即使写了,你再出庭不吃 |
|
|
m*******n 发帖数: 5103 | 35 好像在买买提看到不止一次 "cash pig" 这词了,你们确定吗?应该是 cash cow 吧?
意思是一个公司的营收主要来源,而且是稳定、长期的营收。
Cow,母牛,母牛可以源源不断地产奶,代表长期稳定的收入;pig,猪,猪杀一次就没
了。 |
|
l****3 发帖数: 1 | 36 几个月前预购了四张Peppa Pig Live Show Tickets,现有事去不了了,故转让。如感
兴趣请站内联系。
Peppa Pig Live!
Fri, Apr 13 @ 6:00 PM-Paramount Theatre - Seattle, WA
座位:
Sec MF2, Row R, Seat 1-4
原价:
tickets: USD $55.50 x 4
other Fees:
USD $4 (Order Processing Fee)
USD $4 (Facility Charge) x 4
USD $10 (Service Fee) x 4
total: USD $282.00
转让价: USD $220 |
|
S****U 发帖数: 230 | 37 【 以下文字转载自 Animals 讨论区 】
发信人: SAHAFU (NINE), 信区: Animals
标 题: 宠物guinea pig想送人
发信站: BBS 未名空间站 (Tue May 21 14:09:37 2013, 美东)
我住houston,养了只guinea pig,很可爱,但现在因为孩子大了,老婆一直不喜欢,
所以想将它送给有缘人喂养,附送全套喂养设备。
如果你喜欢宠物,家中有小小孩,你会喜欢它的。 |
|
n********A 发帖数: 112 | 38 转让Honey Pig coupon,
livingsocial买的,面值$30。有效期至3/7/2013。当初团购价是$15 要搬家到别的州
,所以转让。
VA Honey Pig
7220 Columbia Pike, Annandale, VA
(703) 256-5229 www.eathoneypig.com
$12, paypal 或cash 我在 Rockville MD 我有四张,买2张($11/张),3-4 ($10/
张)
请站内联系 或发信到y**********[email protected] |
|
|
n********A 发帖数: 112 | 40 转让Honey Pig coupon,
livingsocial买的,面值$30。有效期至3/7/2013。当初团购价是$15 要搬家到别的州
,所以转让。
VA Honey Pig
7220 Columbia Pike, Annandale, VA
(703) 256-5229 www.eathoneypig.com
$12, paypal 或cash 我在 rockville 我有四张,买2张($11/张),3-4 ($10/张)
有要餐桌,电脑桌和沙发的可以联系我,我会给你发照片,谢谢
请站内联系 或发信到y**********[email protected] |
|
p*********g 发帖数: 9527 | 41 【 以下文字转载自 Military 讨论区 】
发信人: beijingren (to thine own self be true), 信区: Military
标 题: Humans evolved after a female chimpanzee mated with a pig
发信站: BBS 未名空间站 (Sun Dec 1 23:16:40 2013, 美东)
'Humans evolved after a female chimpanzee mated with a pig': Extraordinary
claim made by American geneticist
http://www.dailymail.co.uk/sciencetech/article-2515969/Humans-e |
|
w**********5 发帖数: 1741 | 42 Richard Krajicek on WTA;
'Eighty per cent of the women playing at Wimbledon are lazy, fat pigs and
shouldn't be allowed on the show courts,' he raged on Dutch radio. To be
fair, when challenged the next day on this seemingly unprovoked attack
Krajicek relented. 'I said 80 per cent of the top 100 are fat pigs but I
just over-exaggerated a little bit. What I meant was only 75 per cent.'
克拉吉塞克在荷兰电台对WTA加以抨击:“在温网80%的女球员都是又懒又肥的母猪,她
们都不应该有资格站上观光球场。”后来这次莫名其妙的抨击再次被提及时,他说:“
我当时说的80%是有点夸张了。我想说的其实是75%。”
Dul... 阅读全帖 |
|
l********d 发帖数: 1590 | 43 各位老大们,我来问问题啦。
我最近发现我的一只guinea pig最近经常独自底下湿湿的,有尿味。她还老有屎盯在肚
子上。
我看她们的屎都是正常的,另一只也一直都干干净净的。所以我就怀疑这一只尿路感染
了。
我google了一下,有一个人的pig也是那样,结果去vet那里看了一下是尿路感染。帖子
在这里
http://ca.answers.yahoo.com/question/index?qid=20100222204816AA
我一开始怀疑我家那位是睡在了有尿的bedding上,但是最近已经好几次发现她肚子底
下湿的了,所
以就有点担心了。
我想问问各位尿路感染是不是就是这样的症状?还有那个帖子上的人说vet就给开了点
antibiotic,我能不能也就给我的猪猪弄点antibiotic吃呢?有哪里卖给小动物吃的
antibiotic呢?
谢谢啦! |
|
d****n 发帖数: 130 | 44 ★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
★ 当你放弃你的宠物的时候,你应该明白你将会受到爱宠人士的指责 ★
★ 如果你不能接受那些指责,本版不帮助领养 ★
★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★★
★宠物主人id:
design
★领养时效(寄养/永久领养)及时间长度:
永久领养
★所在地(国家/州):
Gaithersburg, Maryland
★品种:
guinea pig
★性别/绝育状况:
没有绝育,同性
★物理参数(年龄,体重,毛色,等等):
二岁,一只灰白短毛,一只黄白长毛
★健康状况(现在和曾经的详细病史):
健康可爱
★弃养的具体原因:
LP当初买的时候,我就强烈反对,不是因为我不喜欢,是因为我知道她没长性,坚持不
下来。现在果然要弃养。我也没法接过来养,因为我可以预料,她将来会无穷无尽的抱
怨我继续养给她带来的不便,比如说气味。希望有爱心的人能收养,家里房子大的,气
味也不是问题。距离100mile以内的,我可以送过去。另外,也请推荐当地接受guinea
pig的shelter,谢谢。
★宠物... 阅读全帖 |
|
C******k 发帖数: 349 | 45 Just got a pair of boys (two month old) today from petsmart. They are the
first pets for my children.
If you google Guinea Pig Care, you will get a lot of information.
I suggest you to get American or Teddy guinea pigs, since they are short
hair and don't require regular brushing. |
|
c********g 发帖数: 1173 | 46 【 以下文字转载自 Apple 讨论区 】
发信人: cosmorning (Sleeping pig), 信区: Apple
标 题: 有人想试玩我的iOS游戏太空飞猪(新版)吗(space pig)?
发信站: BBS 未名空间站 (Sat Mar 15 20:45:03 2014, 美东)
第一版发布后有几个朋友反映开始的时候太容易,所以我把难度调了一下,又fix了几
个bug。想先找人试玩一下,看难度是不是适中。感兴趣的请PM我,我给你发link。多
谢哈。 |
|
j**g 发帖数: 37 | 47 (here is the game, the answer will be posted later, hehe...... have a try and
see the result)
The best part about this is that you can forward it round your office and then
laugh at everyone’s crap drawings. We are thinking about setting up a small
pig art gallery in the corner of the office here.
Don't cheat by reading the whole thing first!
Get a blank piece of paper , draw a picture of a whole pig on it, not just the
head , just a basic drawing though , don't spend too long on it .
DRAW THE |
|
j**g 发帖数: 37 | 48 The pig serves as a useful test of the personality traits of the drawer.
*If the pig is drawn to the top of the paper, you are positive
and optimistic.
Toward the middle, you are realistic.
Toward the bottom, you are pessimistic, and have a tendency
to behave negatively.
*Facing left, you believe in tradition, are friendly, and remember
dates (birthdays, etc.)
Facing right , you are innovative and active , but don't have a
strong sense of family , nor do you always remember dates |
|
r*****d 发帖数: 346 | 49 请问大家:有什么好方法好资料帮助学习Pig Latin? Pig Latin我完全是新手。我在
amazon上找了下,好像没有书评特别好的。
谢谢! |
|