Oozie Shell action Output data exceeds its limit [2048]










0















I have shell script like below




ssh -q -v -i id_rsa -o "StrictHostKeyChecking no" user@remotemachine script > file

hdfs dfs -put -f file hdfspath



When I run this script in oozie shell action with "", file is copied from remote machine to my machine. Actually its more than 2kb file.
But when i move it to hdfs using (hdfs dfs -put) command Its thrwing below error




Failing Oozie Launcher, Main class
[org.apache.oozie.action.hadoop.ShellMain], exception invoking main(),
Output data exceeds its limit [2048]
org.apache.oozie.action.hadoop.LauncherException: Output data exceeds
its limit [2048]











share|improve this question




























    0















    I have shell script like below




    ssh -q -v -i id_rsa -o "StrictHostKeyChecking no" user@remotemachine script > file

    hdfs dfs -put -f file hdfspath



    When I run this script in oozie shell action with "", file is copied from remote machine to my machine. Actually its more than 2kb file.
    But when i move it to hdfs using (hdfs dfs -put) command Its thrwing below error




    Failing Oozie Launcher, Main class
    [org.apache.oozie.action.hadoop.ShellMain], exception invoking main(),
    Output data exceeds its limit [2048]
    org.apache.oozie.action.hadoop.LauncherException: Output data exceeds
    its limit [2048]











    share|improve this question


























      0












      0








      0








      I have shell script like below




      ssh -q -v -i id_rsa -o "StrictHostKeyChecking no" user@remotemachine script > file

      hdfs dfs -put -f file hdfspath



      When I run this script in oozie shell action with "", file is copied from remote machine to my machine. Actually its more than 2kb file.
      But when i move it to hdfs using (hdfs dfs -put) command Its thrwing below error




      Failing Oozie Launcher, Main class
      [org.apache.oozie.action.hadoop.ShellMain], exception invoking main(),
      Output data exceeds its limit [2048]
      org.apache.oozie.action.hadoop.LauncherException: Output data exceeds
      its limit [2048]











      share|improve this question
















      I have shell script like below




      ssh -q -v -i id_rsa -o "StrictHostKeyChecking no" user@remotemachine script > file

      hdfs dfs -put -f file hdfspath



      When I run this script in oozie shell action with "", file is copied from remote machine to my machine. Actually its more than 2kb file.
      But when i move it to hdfs using (hdfs dfs -put) command Its thrwing below error




      Failing Oozie Launcher, Main class
      [org.apache.oozie.action.hadoop.ShellMain], exception invoking main(),
      Output data exceeds its limit [2048]
      org.apache.oozie.action.hadoop.LauncherException: Output data exceeds
      its limit [2048]








      shell hadoop hdfs oozie






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Nov 13 '18 at 17:04









      Amit Kumar

      997615




      997615










      asked Nov 13 '18 at 11:11









      PrabhuPrabhu

      104




      104






















          1 Answer
          1






          active

          oldest

          votes


















          0














          Add the below in the shell action or put it in /etc/oozie/conf/oozie-site.xml and restart the oozie server. This will increase the console output data that can be captured as part of the shell action tag <capture-output/>. The default is 2048 which is Max size in characters for output data.



           <configuration> 
          <property>
          <name>oozie.action.max.output.data</name>
          <value>8192</value>
          </property>
          </configuration>


          The <capture-output/> is not required if you not using the console output from the shell action for any decisions in next action. Try just by removing the tag <capture-output/> if not required.






          share|improve this answer























          • Sorry Forgot to mention, I need "<capture-output/>" for next action. One more thing, even if i increase (oozie.action.max.output.data) size, the file will huge size. So it will make problem again.

            – Prabhu
            Nov 13 '18 at 12:23












          • What do you mean by file is huge? it does not depend on file size you are using in hdfs put command. It captures the characters that gets printed on the console when you execute your shell script.

            – Amit Kumar
            Nov 13 '18 at 12:29












          • Try executing your shell script without oozie from terminal and then see how much characters gets printed on the terminal console. Increase the oozie.action.max.output.data size more than that. It will work

            – Amit Kumar
            Nov 13 '18 at 12:31











          • So you are saying this command "hdfs dfs -put -f file hdfspath" generates output that exceeds 2kb right? I printed that output and its generating 18kb size of logs.

            – Prabhu
            Nov 13 '18 at 12:53











          • If i run that from terminal without oozie, its not generating any log. When i use oozie shell action only it produces output logs

            – Prabhu
            Nov 13 '18 at 12:55










          Your Answer






          StackExchange.ifUsing("editor", function ()
          StackExchange.using("externalEditor", function ()
          StackExchange.using("snippets", function ()
          StackExchange.snippets.init();
          );
          );
          , "code-snippets");

          StackExchange.ready(function()
          var channelOptions =
          tags: "".split(" "),
          id: "1"
          ;
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function()
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled)
          StackExchange.using("snippets", function()
          createEditor();
          );

          else
          createEditor();

          );

          function createEditor()
          StackExchange.prepareEditor(
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader:
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          ,
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          );



          );













          draft saved

          draft discarded


















          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53279738%2foozie-shell-action-output-data-exceeds-its-limit-2048%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          0














          Add the below in the shell action or put it in /etc/oozie/conf/oozie-site.xml and restart the oozie server. This will increase the console output data that can be captured as part of the shell action tag <capture-output/>. The default is 2048 which is Max size in characters for output data.



           <configuration> 
          <property>
          <name>oozie.action.max.output.data</name>
          <value>8192</value>
          </property>
          </configuration>


          The <capture-output/> is not required if you not using the console output from the shell action for any decisions in next action. Try just by removing the tag <capture-output/> if not required.






          share|improve this answer























          • Sorry Forgot to mention, I need "<capture-output/>" for next action. One more thing, even if i increase (oozie.action.max.output.data) size, the file will huge size. So it will make problem again.

            – Prabhu
            Nov 13 '18 at 12:23












          • What do you mean by file is huge? it does not depend on file size you are using in hdfs put command. It captures the characters that gets printed on the console when you execute your shell script.

            – Amit Kumar
            Nov 13 '18 at 12:29












          • Try executing your shell script without oozie from terminal and then see how much characters gets printed on the terminal console. Increase the oozie.action.max.output.data size more than that. It will work

            – Amit Kumar
            Nov 13 '18 at 12:31











          • So you are saying this command "hdfs dfs -put -f file hdfspath" generates output that exceeds 2kb right? I printed that output and its generating 18kb size of logs.

            – Prabhu
            Nov 13 '18 at 12:53











          • If i run that from terminal without oozie, its not generating any log. When i use oozie shell action only it produces output logs

            – Prabhu
            Nov 13 '18 at 12:55















          0














          Add the below in the shell action or put it in /etc/oozie/conf/oozie-site.xml and restart the oozie server. This will increase the console output data that can be captured as part of the shell action tag <capture-output/>. The default is 2048 which is Max size in characters for output data.



           <configuration> 
          <property>
          <name>oozie.action.max.output.data</name>
          <value>8192</value>
          </property>
          </configuration>


          The <capture-output/> is not required if you not using the console output from the shell action for any decisions in next action. Try just by removing the tag <capture-output/> if not required.






          share|improve this answer























          • Sorry Forgot to mention, I need "<capture-output/>" for next action. One more thing, even if i increase (oozie.action.max.output.data) size, the file will huge size. So it will make problem again.

            – Prabhu
            Nov 13 '18 at 12:23












          • What do you mean by file is huge? it does not depend on file size you are using in hdfs put command. It captures the characters that gets printed on the console when you execute your shell script.

            – Amit Kumar
            Nov 13 '18 at 12:29












          • Try executing your shell script without oozie from terminal and then see how much characters gets printed on the terminal console. Increase the oozie.action.max.output.data size more than that. It will work

            – Amit Kumar
            Nov 13 '18 at 12:31











          • So you are saying this command "hdfs dfs -put -f file hdfspath" generates output that exceeds 2kb right? I printed that output and its generating 18kb size of logs.

            – Prabhu
            Nov 13 '18 at 12:53











          • If i run that from terminal without oozie, its not generating any log. When i use oozie shell action only it produces output logs

            – Prabhu
            Nov 13 '18 at 12:55













          0












          0








          0







          Add the below in the shell action or put it in /etc/oozie/conf/oozie-site.xml and restart the oozie server. This will increase the console output data that can be captured as part of the shell action tag <capture-output/>. The default is 2048 which is Max size in characters for output data.



           <configuration> 
          <property>
          <name>oozie.action.max.output.data</name>
          <value>8192</value>
          </property>
          </configuration>


          The <capture-output/> is not required if you not using the console output from the shell action for any decisions in next action. Try just by removing the tag <capture-output/> if not required.






          share|improve this answer













          Add the below in the shell action or put it in /etc/oozie/conf/oozie-site.xml and restart the oozie server. This will increase the console output data that can be captured as part of the shell action tag <capture-output/>. The default is 2048 which is Max size in characters for output data.



           <configuration> 
          <property>
          <name>oozie.action.max.output.data</name>
          <value>8192</value>
          </property>
          </configuration>


          The <capture-output/> is not required if you not using the console output from the shell action for any decisions in next action. Try just by removing the tag <capture-output/> if not required.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 13 '18 at 12:05









          Amit KumarAmit Kumar

          997615




          997615












          • Sorry Forgot to mention, I need "<capture-output/>" for next action. One more thing, even if i increase (oozie.action.max.output.data) size, the file will huge size. So it will make problem again.

            – Prabhu
            Nov 13 '18 at 12:23












          • What do you mean by file is huge? it does not depend on file size you are using in hdfs put command. It captures the characters that gets printed on the console when you execute your shell script.

            – Amit Kumar
            Nov 13 '18 at 12:29












          • Try executing your shell script without oozie from terminal and then see how much characters gets printed on the terminal console. Increase the oozie.action.max.output.data size more than that. It will work

            – Amit Kumar
            Nov 13 '18 at 12:31











          • So you are saying this command "hdfs dfs -put -f file hdfspath" generates output that exceeds 2kb right? I printed that output and its generating 18kb size of logs.

            – Prabhu
            Nov 13 '18 at 12:53











          • If i run that from terminal without oozie, its not generating any log. When i use oozie shell action only it produces output logs

            – Prabhu
            Nov 13 '18 at 12:55

















          • Sorry Forgot to mention, I need "<capture-output/>" for next action. One more thing, even if i increase (oozie.action.max.output.data) size, the file will huge size. So it will make problem again.

            – Prabhu
            Nov 13 '18 at 12:23












          • What do you mean by file is huge? it does not depend on file size you are using in hdfs put command. It captures the characters that gets printed on the console when you execute your shell script.

            – Amit Kumar
            Nov 13 '18 at 12:29












          • Try executing your shell script without oozie from terminal and then see how much characters gets printed on the terminal console. Increase the oozie.action.max.output.data size more than that. It will work

            – Amit Kumar
            Nov 13 '18 at 12:31











          • So you are saying this command "hdfs dfs -put -f file hdfspath" generates output that exceeds 2kb right? I printed that output and its generating 18kb size of logs.

            – Prabhu
            Nov 13 '18 at 12:53











          • If i run that from terminal without oozie, its not generating any log. When i use oozie shell action only it produces output logs

            – Prabhu
            Nov 13 '18 at 12:55
















          Sorry Forgot to mention, I need "<capture-output/>" for next action. One more thing, even if i increase (oozie.action.max.output.data) size, the file will huge size. So it will make problem again.

          – Prabhu
          Nov 13 '18 at 12:23






          Sorry Forgot to mention, I need "<capture-output/>" for next action. One more thing, even if i increase (oozie.action.max.output.data) size, the file will huge size. So it will make problem again.

          – Prabhu
          Nov 13 '18 at 12:23














          What do you mean by file is huge? it does not depend on file size you are using in hdfs put command. It captures the characters that gets printed on the console when you execute your shell script.

          – Amit Kumar
          Nov 13 '18 at 12:29






          What do you mean by file is huge? it does not depend on file size you are using in hdfs put command. It captures the characters that gets printed on the console when you execute your shell script.

          – Amit Kumar
          Nov 13 '18 at 12:29














          Try executing your shell script without oozie from terminal and then see how much characters gets printed on the terminal console. Increase the oozie.action.max.output.data size more than that. It will work

          – Amit Kumar
          Nov 13 '18 at 12:31





          Try executing your shell script without oozie from terminal and then see how much characters gets printed on the terminal console. Increase the oozie.action.max.output.data size more than that. It will work

          – Amit Kumar
          Nov 13 '18 at 12:31













          So you are saying this command "hdfs dfs -put -f file hdfspath" generates output that exceeds 2kb right? I printed that output and its generating 18kb size of logs.

          – Prabhu
          Nov 13 '18 at 12:53





          So you are saying this command "hdfs dfs -put -f file hdfspath" generates output that exceeds 2kb right? I printed that output and its generating 18kb size of logs.

          – Prabhu
          Nov 13 '18 at 12:53













          If i run that from terminal without oozie, its not generating any log. When i use oozie shell action only it produces output logs

          – Prabhu
          Nov 13 '18 at 12:55





          If i run that from terminal without oozie, its not generating any log. When i use oozie shell action only it produces output logs

          – Prabhu
          Nov 13 '18 at 12:55

















          draft saved

          draft discarded
















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid


          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.

          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function ()
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53279738%2foozie-shell-action-output-data-exceeds-its-limit-2048%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Barbados

          How to read a connectionString WITH PROVIDER in .NET Core?

          Node.js Script on GitHub Pages or Amazon S3