Hi,
you may use the Sqoop action to do the import:
https://oozie.apache.org/docs/4.2.0/DG_SqoopActionExtension.html

gp

On Tue, Sep 6, 2016 at 1:51 PM, wangwei <[email protected]> wrote:

> Hi,
>  I have a scene, there are a lot of tables need to use the sqoop import
> mysql, so I need to write the sqoop in the shell script, to cycle through
> all the tables.
>   It still appears the same error。
>
>
>
>
> ------------------ 原始邮件 ------------------
> 发件人: "satish saley";<[email protected]>;
> 发送时间: 2016年9月6日(星期二) 晚上7:21
> 收件人: "user"<[email protected]>;
>
> 主题: Re: oozie execute shell(content hive or sqoop command)
>
>
>
> Hi,
> For hive scripts, use hive-action. It would easy to follow the pipeline for
> others and to debug since oozie will show the hive job url directly in the
> UI.
>
> https://oozie.apache.org/docs/4.2.0/DG_HiveActionExtension.html
> https://oozie.apache.org/docs/4.2.0/DG_Hive2ActionExtension.html
>
> On Tue, Sep 6, 2016 at 3:21 AM, wangwei <[email protected]> wrote:
>
> > Hi:
> >  my shell content: hive.sh
> >   #!/bin/bash
> >   hive -e "select count(*) from test;"
> >  my workflow content:workflow.xml
> >
> > The following error occurred:
> >
> > How to solve?,Please
> >
> >
> >
> >
>



-- 
Peter Cseh
Software Engineer
<http://www.cloudera.com>

Reply via email to