index.html 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE html
  3. PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  4. <html lang="en-us" xml:lang="en-us">
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  7. <link rel="stylesheet" type="text/css" href="commonltr.css"/>
  8. <title>Pig Editor</title>
  9. </head>
  10. <body id="xd_583c10bfdbd326ba-3ca24a24-13d80143249--7f9c"><a name="xd_583c10bfdbd326ba-3ca24a24-13d80143249--7f9c"><!-- --></a>
  11. <h1 class="title topictitle1">Pig Editor</h1>
  12. <div class="body conbody">
  13. <p class="p">The Pig Editor application allows you to define Pig scripts, run scripts,
  14. and view the status of jobs. For information about Pig, see <a class="xref" href="http://archive.cloudera.com/cdh5/cdh/5/pig/" target="_blank">Pig Documentation</a>. </p>
  15. </div>
  16. <p id="docs-internal-guid-0ab02ef5-c3a4-c1fe-509c-31f69bf4beb7"><span>In Hue 3.5, a new assistant was added to the </span><a href="http://gethue.tumblr.com/post/51559235973/tutorial-apache-pig-editor-in-hue-2-3"><span>Pig Editor</span></a><span>: Navigator.</span></p>
  17. <p><br/><span></span></p>
  18. <p><span>Similarly to the </span><a href="http://gethue.tumblr.com/post/64916325309/hadoop-tutorial-hive-query-editor-with-hiveserver2-and"><span>Hive</span></a><span> and </span><a href="http://gethue.tumblr.com/post/62452792255/fast-sql-with-the-impala-query-editor"><span>Impala</span></a><span> Editors, functions and Pig statements are made directly available from within the editor:</span></p>
  19. <p><br/><span></span></p>
  20. <p><iframe frameborder="0" height="495" src="http://player.vimeo.com/video/81111082" width="900"></iframe></p>
  21. <p><br/><span></span></p>
  22. <p><span>Navigator is:</span></p>
  23. <ul><li>
  24. <p><span>Sorted by category</span></p>
  25. </li>
  26. <li>
  27. <p><span>Searchable</span></p>
  28. </li>
  29. <li>
  30. <p><span>Auto-completable (as well as HDFS paths and Metastore tables)</span></p>
  31. </li>
  32. </ul><p><br/><span></span><span>So now, get started with </span><a href="http://pig.apache.org/"><span>Apache Pig</span></a><span>!</span></p>
  33. </p>
  34. <div class="topic concept nested1" id="concept_u25_g2v_yj"><a name="concept_u25_g2v_yj"><!-- --></a>
  35. <h2 class="title topictitle2">Pig Editor Installation and Configuration </h2>
  36. <div class="body conbody">
  37. <p class="p">Pig Editor is one of the applications installed as part of Hue.
  38. </div>
  39. </div>
  40. <div class="topic concept nested1" id="concept_e2q_xn5_wj"><a name="concept_e2q_xn5_wj"><!-- --></a>
  41. <h2 class="title topictitle2">Starting Pig Editor</h2>
  42. <div class="body conbody">
  43. <div class="p">Click the <strong class="ph b">Pig Editor</strong> icon (<a name="concept_e2q_xn5_wj__image_fgk_4n5_wj"><!-- --></a><img class="image" id="concept_e2q_xn5_wj__image_fgk_4n5_wj" src="/pig/static/art/icon_pig_24.png"/>) in the navigation bar at the top of the Hue
  44. browser page. The Pig Editor opens with three tabs:<a name="concept_e2q_xn5_wj__ul_itr_clx_2k"><!-- --></a><ul class="ul" id="concept_e2q_xn5_wj__ul_itr_clx_2k">
  45. <li class="li">Editor - editor where you can create, edit, run, save, copy, and
  46. delete scripts and edit script properties.</li>
  47. <li class="li">Scripts - script manager where you can create, open, run, copy,
  48. and delete scripts. </li>
  49. <li class="li">Dashboard - dashboard where you can view running and completed
  50. scripts and view the log of a job. </li>
  51. </ul>
  52. </div>
  53. </div>
  54. </div>
  55. <div class="topic concept nested1" id="concept_lng_kjt_yj"><a name="concept_lng_kjt_yj"><!-- --></a>
  56. <h2 class="title topictitle2">Installing the Sample Pig Scripts </h2>
  57. <div class="body conbody">
  58. <div class="note note"><span class="notetitle"><img src="/static/art/help/note.jpg"/> 
  59. <b>Note</b>:</span> You must be a superuser to perform this task.</div>
  60. <a name="concept_lng_kjt_yj__ol_zys_pjt_yj"><!-- --></a><ol class="ol" id="concept_lng_kjt_yj__ol_zys_pjt_yj">
  61. <li class="li">Click <a name="concept_lng_kjt_yj__d45e102"><!-- --></a><img class="image" id="concept_lng_kjt_yj__d45e102" src="/static/art/hue-logo-mini.png"/>. The Quick Start Wizard opens.</li>
  62. <li class="li">Click <strong class="ph b">Step 2:
  63. Examples</strong>.</li>
  64. <li class="li">Click <strong class="ph b">Pig Editor</strong>.</li>
  65. </ol>
  66. </div>
  67. <div class="topic concept nested2" id="concept_b5z_23x_2k"><a name="concept_b5z_23x_2k"><!-- --></a>
  68. <h3 class="title topictitle3">Scripts</h3>
  69. <div class="body conbody">
  70. <div class="section" id="concept_b5z_23x_2k__section_s35_5lx_2k"><a name="concept_b5z_23x_2k__section_s35_5lx_2k"><!-- --></a><h4 class="title sectiontitle">Creating a Script</h4>
  71. <a name="concept_b5z_23x_2k__ol_mwq_z2y_2k"><!-- --></a><ol class="ol" id="concept_b5z_23x_2k__ol_mwq_z2y_2k">
  72. <li class="li">In either the Editor or Scripts screen, click <span class="ph uicontrol">New
  73. script</span>. Edit the script as desired.</li>
  74. <li class="li">Click <span class="ph uicontrol">Edit
  75. Properties</span>. In the Script name field, type a name for the script.</li>
  76. <li class="li">Click <span class="ph uicontrol">Save</span>.</li>
  77. </ol>
  78. </div>
  79. <div class="section" id="concept_b5z_23x_2k__section_tvv_5lx_2k"><a name="concept_b5z_23x_2k__section_tvv_5lx_2k"><!-- --></a><h4 class="title sectiontitle">Opening a Script</h4>
  80. <a name="concept_b5z_23x_2k__ol_nvn_2fy_2k"><!-- --></a><ol class="ol" id="concept_b5z_23x_2k__ol_nvn_2fy_2k">
  81. <li class="li">Click the <span class="ph uicontrol">Scripts</span> tab.</li>
  82. <li class="li">In the list of scripts, click a script.</li>
  83. </ol>
  84. </div>
  85. <div class="section" id="concept_b5z_23x_2k__section_gjr_rfy_2k"><a name="concept_b5z_23x_2k__section_gjr_rfy_2k"><!-- --></a><h4 class="title sectiontitle">Running a Script</h4>
  86. <a name="concept_b5z_23x_2k__ol_r2q_sfy_2k"><!-- --></a><ol class="ol" id="concept_b5z_23x_2k__ol_r2q_sfy_2k">
  87. <li class="li">Do one of the following:<a name="concept_b5z_23x_2k__ul_gj2_5fy_2k"><!-- --></a><ul class="ul" id="concept_b5z_23x_2k__ul_gj2_5fy_2k">
  88. <li class="li">In the Editor screen, click the <span class="ph uicontrol">Run</span> button.</li>
  89. <li class="li">In the Scripts screen, check the checkbox next to a script and click the
  90. <span class="ph uicontrol">Run</span> button.</li>
  91. </ul>
  92. </li>
  93. </ol>
  94. </div>
  95. <div class="section" id="concept_b5z_23x_2k__section_kf2_zfy_2k"><a name="concept_b5z_23x_2k__section_kf2_zfy_2k"><!-- --></a><h4 class="title sectiontitle">Viewing the Result of Running a Script</h4>
  96. <a name="concept_b5z_23x_2k__ol_jvm_2gy_2k"><!-- --></a><ol class="ol" id="concept_b5z_23x_2k__ol_jvm_2gy_2k">
  97. <li class="li">Click the <span class="ph uicontrol">Dashboard</span> tab.</li>
  98. <li class="li">Click a job.</li>
  99. </ol>
  100. </div>
  101. </div>
  102. </div>
  103. </div>
  104. </body>
  105. </html>