Hi,
I am trying to copy part files from hdfs to Vertica, using vertica webhdfs connector. I am facing a weird issue. It would be great if some one can help me with this:
There are four files in hdfs as :
/vertica/data/7th_aug/000000_0
/vertica/data/7th_aug/000000_1
/vertica/data/7th_aug/000000_2
/vertica/data/7th_aug/000000_3
The files have total 110000 record each. Total 440000 records.
Below is the copy command
copy abc.temp source Hdfs(url='http://xxmn301301.corp.abc.net:50070/webhdfs/v1/vertica/data/7th_aug/*', username='vertica') DELIMITER E'\001';
Rows Loaded
-------------
220000
(1 row)
Out of 4 files, 2 files are getting loaded completely and 2 of them are getting completely rejected.
vertica=> select count(*) from abc.temp where country_id = 000000;
count
--------
110000
(1 row)
vertica=> select count(*) from abc.temp where country_id = 000001;
count
-------
0
(1 row)
vertica=> select count(*) from abc.temp where country_id = 000002;
count
--------
110000
(1 row)
vertica=> select count(*) from abc.temp where country_id = 000003
vertica-> ;
count
-------
0
(1 row)
The files are Control A delimited, the once which are getting rejected. Below are the various error I am getting for the load:
2014-08-10 20:03:12.945102-07 | 1 | ERROR | Invalid integer format '</html>' for column 1 (country_id)
2014-08-10 20:03:12.945065-07 | 1 | ERROR | Invalid integer format '</body>' for column 1 (country_id)
2014-08-10 20:03:12.945027-07 | 1 | ERROR | Invalid integer format '<br/> ' for column 1 (country_id)
2014-08-10 20:03:12.944987-07 | 1 | ERROR | Invalid integer format '<br/> ' for column 1 (country_id)
2014-08-10 20:03:12.944271-07 | 1 | ERROR | Invalid integer format '<pre> </pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> ' for column 1 (country_id)
2014-08-10 20:03:12.944229-07 | 1 | ERROR | Invalid integer format '<p>Problem accessing /webhdfs/v1/vertica/data/7th_aug/000000_3. Reason:' for column 1 (country_id)
2014-08-10 20:03:12.944191-07 | 1 | ERROR | Invalid integer format '<body><h2>HTTP ERROR 401</h2>' for column 1 (country_id)
2014-08-10 20:03:12.944153-07 | 1 | ERROR | Invalid integer format '</head>' for column 1 (country_id)
2014-08-10 20:03:12.944116-07 | 1 | ERROR | Invalid integer format '<title>Error 401 </title>' for column 1 (country_id)
2014-08-10 20:03:12.944077-07 | 1 | ERROR | Invalid integer format '<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>' for column 1 (country_id)
2014-08-10 20:03:12.944037-07 | 1 | ERROR | Invalid integer format '<head>' for column 1 (country_id)
2014-08-10 20:03:12.943978-07 | 1 | ERROR | Invalid integer format '<html>' for column 1 (country_id)
2014-08-10 20:03:12.934761-07 | 1 | ERROR | Invalid integer format '</html>' for column 1 (country_id)
2014-08-10 20:03:12.934725-07 | 1 | ERROR | Invalid integer format '</body>' for column 1 (country_id)
2014-08-10 20:03:12.934687-07 | 1 | ERROR | Invalid integer format '<br/> ' for column 1 (country_id)
2014-08-10 20:03:12.933925-07 | 1 | ERROR | Invalid integer format '<pre> </pre></p><hr /><i><small>Powered by Jetty://</small></i><br/> ' for column 1 (country_id)
2014-08-10 20:03:12.93388-07 | 1 | ERROR | Invalid integer format '<p>Problem accessing /webhdfs/v1/vertica/data/7th_aug/000000_1. Reason:' for column 1 (country_id)
2014-08-10 20:03:12.933842-07 | 1 | ERROR | Invalid integer format '<body><h2>HTTP ERROR 401</h2>' for column 1 (country_id)
2014-08-10 20:03:12.933805-07 | 1 | ERROR | Invalid integer format '</head>' for column 1 (country_id)
2014-08-10 20:03:12.933766-07 | 1 | ERROR | Invalid integer format '<title>Error 401 </title>' for column 1 (country_id)
2014-08-10 20:03:12.93372-07 | 1 | ERROR | Invalid integer format '<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>' for column 1 (country_id)
2014-08-10 20:03:12.933649-07 | 1 | ERROR | Invalid integer format '<head>' for column 1 (country_id)
2014-08-10 20:03:12.933566-07 | 1 | ERROR | Invalid integer format '<html>' for column 1 (country_id)
I am not able to understand, how the exact same files are getting loaded but the exact same files are also getting rejected. Let me know if you need any further details.
Regards,
-Amit
Sign up
Already have an account? Login
Welcome to the Rocket Forum!
Please log in or register:
Employee Login | Registration Member Login | RegistrationEnter your E-mail address. We'll send you an e-mail with instructions to reset your password.