Sqoop needs to be able to parse the files you're trying to merge as newer entries must be updated. Usually Sqoop generate special class for this purpose based on connection in use, however in merge case there is no connection to the database and therefore you need to specify such class manually. This class is automatically generated for you in case of an import tool and might be manually generated using codegen tool . You might get additional information about those two arguments in merge tool in our user guide .
On Tue, Oct 23, 2012 at 09:41:07AM -0400, Chalcy wrote:
> Hello Sqoop users,
> I tried to use sqoop merge and understand all the parameters except
> --class-name and --jar-file. What should that be? Sqoop errors out if I
> do not specify them.
> The command I am using is
> sqoop merge --new-data user/hadoop/testincrement --onto
> /user/hadoop/exisitngdata --target-dir /user/hadoop/mergeddir --merge-key