如何在本地运行Apache Tez?

时间:2015-07-14 13:55:26

标签: hadoop hadoop-plugins apache-tez

一个人可以执行tez的方法之一是在本地模式下与hadoop集成。为了运行它localy 我阅读this page并了解我必须做出的更改,并更新了tez-site.xml配置。但我不知道如何开始它。

我尝试运行一个带有main方法的tez-examples(例如wordCount)。但它停滞不前,不打印任何东西到stdout。我有什么需要先开始的吗?

如何在本地模式下运行tez?

1 个答案:

答案 0 :(得分:0)

我设法运行它包含所需的库。我可以更改pom并使用依赖项构建最终的jar文件,但我更喜欢不更改项目。

使用<div class="eva-accordion" style="padding-bottom: 10px;"> <asp:Repeater ID="rpCategory" runat="server" OnItemDataBound="rpProducts_ItemDataBound"> <ItemTemplate> <div class="accordion-group"> <div class="accordion-heading"> <a class="<%# GetItemClass(Container.ItemIndex) %>" data-toggle="collapse" data-parent="" href="#"> <h3><%# Eval("category_name") %></h3> <h6 style="display: none;" class="select">Selected Products ( <span class="selectitem">0</span> ) </h6> </a> </div> <div class="<%# divGetItemClass(Container.ItemIndex) %>"> <div class="accordion-inner"> <p> <asp:Label ID="lblmsg" runat="server" Text="No record found..." Visible="false"></asp:Label> <asp:Repeater ID="rpProducts" runat="server"> <HeaderTemplate> <div class="row-fluid"> <div class="span12 marb20 marl0"> <div class="span1" style="text-align: center !important;"> No. </div> <div class="span3 marl0"> Products Name </div> <div class="span2 marl0"> Tablets </div> <div class="span2 marl0"> Capsules </div> <div class="span2 marl0"> Injection </div> <div class="span2 marl0"> Strength </div> <div class="span1 pull-right" style="text-align: center !important;"> </div> </div> </div> </HeaderTemplate> <ItemTemplate> <div class="row-fluid"> <div class="span12 marb20 marl0"> <div class="span1" style="text-align: center !important;"> <%# Container.ItemIndex + 1 %> </div> <div class="span3 marl0"> <%# Eval("product_name") %> </div> <div class="span2 marl0"> <%# Eval("tablets") %>&nbsp; </div> <div class="span2 marl0"> <%# Eval("capsules") %>&nbsp; </div> <div class="span2 marl0"> <%# Eval("injection") %>&nbsp; </div> <div class="span2 marl0"> <%# Eval("strength") %>&nbsp; </div> <div class="span1 pull-right" style="text-align: center !important;"> <asp:CheckBox ID="chk" runat="server" ValidationGroup='<%# Eval("product_name") %>' CssClass="chk" /> </div> </div> </div> </ItemTemplate> </asp:Repeater> </p> </div> </div> </div> </ItemTemplate> </asp:Repeater> </div> $(document).ready(function () { $('.chk').change(function () { if (!$(this).find('input:checkbox').is(':checked')) { selectitem = parseInt($(this).closest('.accordion-group').find('.selectitem').text()); if (selectitem != 0) { $(this).closest('.accordion-group').find('.selectitem').text(selectitem - 1); selectitem = parseInt($(this).closest('.accordion-group').find('.selectitem').text()); if (selectitem == 0) { $(this).closest('.accordion-group').find('.select').hide(200); } } else { $(this).closest('.accordion-group').find('.select').hide(200); selectitem = parseInt($(this).closest('.accordion-group').find('.selectitem').text()); } } else { var selectitem = parseInt($(this).closest('.accordion-group').find('.selectitem').text()); $(this).closest('.accordion-group').find('.selectitem').text(selectitem + 1); $(this).closest('.accordion-group').find('.select').show(200); } }); });

构建后

我通过设置java classpath运行它:

mvn clean install -DskipTests=true -Dmaven.javadoc.skip=true