<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>
	「[原创]Apache Pig中文教程合集」的评论	</title>
	<atom:link href="https://www.codelast.com/%E5%8E%9F%E5%88%9Bapache-pig%E4%B8%AD%E6%96%87%E6%95%99%E7%A8%8B%E9%9B%86%E5%90%88/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/</link>
	<description>最优化之路</description>
	<lastBuildDate>Sat, 18 Nov 2023 15:11:20 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>
	<item>
		<title>
		评论者：placebo		</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1543</link>

		<dc:creator><![CDATA[placebo]]></dc:creator>
		<pubDate>Mon, 23 Sep 2013 09:55:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.codelast.com/?p=4550#comment-1543</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1472&quot;&gt;龙山飞俊&lt;/a&gt;。

pig -x mapreduce filename &#062; log 2&#062;&#038;1]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1472">龙山飞俊</a>。</p>
<p>pig -x mapreduce filename &gt; log 2&gt;&amp;1</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：龙山飞俊		</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1472</link>

		<dc:creator><![CDATA[龙山飞俊]]></dc:creator>
		<pubDate>Tue, 06 Aug 2013 01:46:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.codelast.com/?p=4550#comment-1472</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1429&quot;&gt;learnhard&lt;/a&gt;。

我问的其实是执行脚本的时候屏幕会输出
successed read xxx records ... 

这些数据怎么才能重定向输出到某个文件上， 作为程序执行日志。]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1429">learnhard</a>。</p>
<p>我问的其实是执行脚本的时候屏幕会输出<br />
successed read xxx records ... </p>
<p>这些数据怎么才能重定向输出到某个文件上， 作为程序执行日志。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：learnhard		</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1429</link>

		<dc:creator><![CDATA[learnhard]]></dc:creator>
		<pubDate>Tue, 23 Jul 2013 06:58:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.codelast.com/?p=4550#comment-1429</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1409&quot;&gt;龙山飞俊&lt;/a&gt;。

在不借助其他PigStorage的情况下，Pig只能把数据输出到HDFS上，因此，在shell脚本中执行Pig脚本，然后把Pig脚本输出到HDFS上的数据hadoop fs -get到local fs再处理。]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1409">龙山飞俊</a>。</p>
<p>在不借助其他PigStorage的情况下，Pig只能把数据输出到HDFS上，因此，在shell脚本中执行Pig脚本，然后把Pig脚本输出到HDFS上的数据hadoop fs -get到local fs再处理。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：龙山飞俊		</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1409</link>

		<dc:creator><![CDATA[龙山飞俊]]></dc:creator>
		<pubDate>Fri, 19 Jul 2013 05:10:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.codelast.com/?p=4550#comment-1409</guid>

					<description><![CDATA[我想搞一个自动运行的SHELL脚本， 让系统每天一个Pig脚本， 请问如何能够让Pig运行一次脚本输出到日志上。 因为要对输入行数和输出行数进行归档。]]></description>
			<content:encoded><![CDATA[<p>我想搞一个自动运行的SHELL脚本， 让系统每天一个Pig脚本， 请问如何能够让Pig运行一次脚本输出到日志上。 因为要对输入行数和输出行数进行归档。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：learnhard		</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1007</link>

		<dc:creator><![CDATA[learnhard]]></dc:creator>
		<pubDate>Wed, 30 Jan 2013 09:51:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.codelast.com/?p=4550#comment-1007</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1006&quot;&gt;chali&lt;/a&gt;。

早就有了很多年了：
http://pig.apache.org/docs/r0.8.1/api/org/apache/pig/piggybank/storage/DBStorage.html
http://stackoverflow.com/questions/4648814/a-way-to-export-the-results-from-pig-to-a-database
不过不建议那样做，可能在特定的MySQL环境下会有陷阱，具体一两句说不清，我不打算在这里叙述。
结果数据量不大的话，还是建议用shell script来插入MySQL。]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1006">chali</a>。</p>
<p>早就有了很多年了：<br />
<a href="http://pig.apache.org/docs/r0.8.1/api/org/apache/pig/piggybank/storage/DBStorage.html" rel="nofollow ugc">http://pig.apache.org/docs/r0.8.1/api/org/apache/pig/piggybank/storage/DBStorage.html</a><br />
<a href="http://stackoverflow.com/questions/4648814/a-way-to-export-the-results-from-pig-to-a-database" rel="nofollow ugc">http://stackoverflow.com/questions/4648814/a-way-to-export-the-results-from-pig-to-a-database</a><br />
不过不建议那样做，可能在特定的MySQL环境下会有陷阱，具体一两句说不清，我不打算在这里叙述。<br />
结果数据量不大的话，还是建议用shell script来插入MySQL。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：chali		</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-1006</link>

		<dc:creator><![CDATA[chali]]></dc:creator>
		<pubDate>Wed, 30 Jan 2013 08:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://www.codelast.com/?p=4550#comment-1006</guid>

					<description><![CDATA[最近正在考虑如何将pig在mapreduce模式下的操作结果保存入关系型数据库，像mysql之类的，请问该如何操作？这样的想法可以实现不能？]]></description>
			<content:encoded><![CDATA[<p>最近正在考虑如何将pig在mapreduce模式下的操作结果保存入关系型数据库，像mysql之类的，请问该如何操作？这样的想法可以实现不能？</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：senchen		</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-790</link>

		<dc:creator><![CDATA[senchen]]></dc:creator>
		<pubDate>Thu, 22 Nov 2012 13:39:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.codelast.com/?p=4550#comment-790</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-722&quot;&gt;learnhard&lt;/a&gt;。

很感谢楼主答复，大概问题我找到了，是人为设置并发执行的时候导致的，面对少数据量，而设置高并发会出现这样的问题，不知道这个是不是个bug ：）]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-722">learnhard</a>。</p>
<p>很感谢楼主答复，大概问题我找到了，是人为设置并发执行的时候导致的，面对少数据量，而设置高并发会出现这样的问题，不知道这个是不是个bug ：）</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：learnhard		</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-722</link>

		<dc:creator><![CDATA[learnhard]]></dc:creator>
		<pubDate>Mon, 12 Nov 2012 04:36:27 +0000</pubDate>
		<guid isPermaLink="false">http://www.codelast.com/?p=4550#comment-722</guid>

					<description><![CDATA[回复给 &lt;a href=&quot;https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-711&quot;&gt;senchen&lt;/a&gt;。

没遇到过这种问题。
如果不是local job，那么应该就跟提交jog的机器无关，帮不了你。
如果是local job，建议换一台机器试跑一下看看是否出问题。]]></description>
			<content:encoded><![CDATA[<p>回复给 <a href="https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-711">senchen</a>。</p>
<p>没遇到过这种问题。<br />
如果不是local job，那么应该就跟提交jog的机器无关，帮不了你。<br />
如果是local job，建议换一台机器试跑一下看看是否出问题。</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：senchen		</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-711</link>

		<dc:creator><![CDATA[senchen]]></dc:creator>
		<pubDate>Fri, 09 Nov 2012 16:31:29 +0000</pubDate>
		<guid isPermaLink="false">http://www.codelast.com/?p=4550#comment-711</guid>

					<description><![CDATA[楼主，求助您问题：
java.lang.RuntimeException: java.io.FileNotFoundException: File does not exist: /pig_tmp/temp434410245/tmp1466749759/part-r-00113

我用小数据量跑pig脚本的时候，经常会出现这样的错误，
但是脚本平时在大数量中跑是正常的

查看了日志，初步发现的问题是：相关联的上一步job写的中间数据被删掉了，不知道什么原因？]]></description>
			<content:encoded><![CDATA[<p>楼主，求助您问题：<br />
java.lang.RuntimeException: java.io.FileNotFoundException: File does not exist: /pig_tmp/temp434410245/tmp1466749759/part-r-00113</p>
<p>我用小数据量跑pig脚本的时候，经常会出现这样的错误，<br />
但是脚本平时在大数量中跑是正常的</p>
<p>查看了日志，初步发现的问题是：相关联的上一步job写的中间数据被删掉了，不知道什么原因？</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：june_1201		</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-421</link>

		<dc:creator><![CDATA[june_1201]]></dc:creator>
		<pubDate>Sun, 13 May 2012 18:18:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.codelast.com/?p=4550#comment-421</guid>

					<description><![CDATA[good~ 支持楼主~
感谢楼主的分享精神~]]></description>
			<content:encoded><![CDATA[<p>good~ 支持楼主~<br />
感谢楼主的分享精神~</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		评论者：Perfect Ryan		</title>
		<link>https://www.codelast.com/%e5%8e%9f%e5%88%9bapache-pig%e4%b8%ad%e6%96%87%e6%95%99%e7%a8%8b%e9%9b%86%e5%90%88/comment-page-1/#comment-395</link>

		<dc:creator><![CDATA[Perfect Ryan]]></dc:creator>
		<pubDate>Tue, 10 Apr 2012 10:47:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.codelast.com/?p=4550#comment-395</guid>

					<description><![CDATA[一直在关注，从学PIG就一直看你写的文章。期待更多的更新。]]></description>
			<content:encoded><![CDATA[<p>一直在关注，从学PIG就一直看你写的文章。期待更多的更新。</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
