Quantcast
Channel: Toad for Hadoop Forum - Recent Threads
Viewing all articles
Browse latest Browse all 114

Transfer MS SQL to Hive - HTTP/1.1 400 Bad Request

$
0
0

Hi, I'm attempting my first transfer using Toad for Hadoop 1.5, from SQL Server 2008 R2 to Hive (Cloudera CDH 5.2.6). I'm using client driver version CDH5 5.1 and am able to query the cluster using Hive and Impala. Under Services, SQL, HDFS and Transfer are available. After filling in the Connection Settings for the source, I clicked Test Connection, and it succeeded. After clicking Execute, 16 seconds later I get this error message:

The table dim_tier has not been transfered:

An exception was caught.
HTTP/1.1 400 Bad Request

For the source host, I tried both the name and the ip address, same result. I'm doing scenario 2 on this page, with Toad for Apache Hadoop on local machine and Hadoop Distribution and a relational database on separate remote machines.

www.toadworld.com/.../11154.connection-between-hadoop-and-relational-database

This is the Sqoop command with some items X'd out.

sqoop import -Dsqoop.throwOnError=true --connect jdbc:sqlserver://XXXX;database=XXXX--username sa --password-file hdfs://nameservice1/user/admin/.tfah/SQOOP_IMPORT/20160605_000834_721/.password --num-mappers 1 --table "dim_tier" --columns dim_merchant_id,dim_tier_id,tier_name --null-string null --null-non-string null --hive-delims-replacement \40 --target-dir hdfs://nameservice1/user/admin/.tfah/SQOOP_IMPORT/20160605_000834_721/data/ --escaped-by \ -- --schema "dbo"

What should I try next?


Viewing all articles
Browse latest Browse all 114

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>