[ 
https://issues.apache.org/jira/browse/SQOOP-3191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

liviu updated SQOOP-3191:
-------------------------
    Description: 
In documentation is stated that sqoop import-mainframe can import files to 
formats avro/parquet 
When I add the option --as-avrodatafile I receive an "Unrecognized argument" 
error:

{code}
17/05/31 08:25:35 ERROR tool.BaseSqoopTool: Error parsing arguments for 
import-mainframe:
17/05/31 08:25:35 ERROR tool.BaseSqoopTool: Unrecognized argument: 
--as-avrodatafile
{code}

Also, the help is listing only the -as-textfile option (no avro/parquet options)

{code}
sqoop help import-mainframe
Warning: 
/opt/cloudera/parcels/CDH-5.8.2-1.cdh5.8.2.p0.3/bin/../lib/sqoop/../accumulo 
does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
17/05/31 08:29:54 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.8.2
...........
Import mainframe control arguments:
   --as-textfile                                              Imports data
                                                              as plain
                                                              text
                                                              (default)
   --compression-codec <codec>                                Compression
                                                              codec to use
                                                              for import
   --dataset <Dataset name>                                   Datasets to


{code}

So, is this a bug in sqoop application or the documentation is wrong and import 
as avro/parquet is not supported by sqoop import-mainframe?

Thanks,


  was:
In documentation is stated that sqoop import-mainframe can import files to 
formats avro/parquet 
When I add the option --as-avrodatafile I receive an "Unrecognized argument" 
error:

{code}
17/05/31 08:25:35 ERROR tool.BaseSqoopTool: Error parsing arguments for 
import-mainframe:
17/05/31 08:25:35 ERROR tool.BaseSqoopTool: Unrecognized argument: 
--as-avrodatafile
{code}

Also, the help is listing only the -as-textfile option (no avro/parquet options)

{code}
sqoop help import-mainframe
Warning: 
/opt/cloudera/parcels/CDH-5.8.2-1.cdh5.8.2.p0.3/bin/../lib/sqoop/../accumulo 
does not exist! Accumulo imports will fail.
Please set $ACCUMULO_HOME to the root of your Accumulo installation.
17/05/31 08:29:54 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.8.2
...........
Import mainframe control arguments:
   --as-textfile                                              Imports data
                                                              as plain
                                                              text
                                                              (default)
   --compression-codec <codec>                                Compression
                                                              codec to use
                                                              for import
   --dataset <Dataset name>                                   Datasets to


{code}

So, is this a bug in sqoop application ar the documentation is wrong and import 
as avro/parquet is not supported by sqoop import-mainframe?

Thanks,



> import as avro file is missing from sqoop import-mainframe
> ----------------------------------------------------------
>
>                 Key: SQOOP-3191
>                 URL: https://issues.apache.org/jira/browse/SQOOP-3191
>             Project: Sqoop
>          Issue Type: Bug
>          Components: build
>    Affects Versions: 1.4.6
>            Reporter: liviu
>
> In documentation is stated that sqoop import-mainframe can import files to 
> formats avro/parquet 
> When I add the option --as-avrodatafile I receive an "Unrecognized argument" 
> error:
> {code}
> 17/05/31 08:25:35 ERROR tool.BaseSqoopTool: Error parsing arguments for 
> import-mainframe:
> 17/05/31 08:25:35 ERROR tool.BaseSqoopTool: Unrecognized argument: 
> --as-avrodatafile
> {code}
> Also, the help is listing only the -as-textfile option (no avro/parquet 
> options)
> {code}
> sqoop help import-mainframe
> Warning: 
> /opt/cloudera/parcels/CDH-5.8.2-1.cdh5.8.2.p0.3/bin/../lib/sqoop/../accumulo 
> does not exist! Accumulo imports will fail.
> Please set $ACCUMULO_HOME to the root of your Accumulo installation.
> 17/05/31 08:29:54 INFO sqoop.Sqoop: Running Sqoop version: 1.4.6-cdh5.8.2
> ...........
> Import mainframe control arguments:
>    --as-textfile                                              Imports data
>                                                               as plain
>                                                               text
>                                                               (default)
>    --compression-codec <codec>                                Compression
>                                                               codec to use
>                                                               for import
>    --dataset <Dataset name>                                   Datasets to
> {code}
> So, is this a bug in sqoop application or the documentation is wrong and 
> import as avro/parquet is not supported by sqoop import-mainframe?
> Thanks,



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to