Member since
05-15-2017
86
Posts
12
Kudos Received
4
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
13466 | 06-13-2017 12:53 AM | |
4614 | 06-03-2017 03:47 PM | |
2439 | 05-16-2017 08:00 PM | |
2048 | 02-04-2016 02:50 AM |
03-01-2016
04:28 PM
2 Kudos
Hi Artem, thanks for the info. I am trying use this way, but I am getting some java error. STORE AFO INTO '/user/hortontest/final_3' USING org.apache.pig.piggybank.storage.MultiStorage('/user/horton/test/final_3','0','none',','); Error: ERROR org.apache.pig.PigServer - exception during parsing: Error during parsing. Could not resolve org.apache.pig.piggybank.storage.MultiStorage using imports: [, java.lang., org.apache.pig.builtin., org.apache.pig.impl.builtin.]
... View more
03-01-2016
03:25 PM
2 Kudos
Hello Friends, Could any one please let me know how I can store the final output from the pig script as 3 files irrespective of source file/block size? Thanks, Satish.
... View more
Labels:
- Labels:
-
Apache Pig
02-12-2016
05:37 PM
1 Kudo
yes, it worked. Here is the final script: sqoop import --connect jdbc:mysql://localhost/test --username sat -P --query 'select
emp_no,
salary
from
salaries
where
$CONDITIONS and salary>800' --split-by emp_no --target-dir /user/cloudera/tmp/ff Thanks much.
... View more
02-12-2016
05:29 PM
Yes and error is , 16/02/12 09:28:51 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.
16/02/12 09:28:51 INFO tool.CodeGenTool: Beginning code generation
16/02/12 09:28:51 INFO manager.SqlManager: Executing SQL statement: select
emp_no,
salary
from
salaries
where
salary>8000 (1 = 0) 16/02/12 09:28:51 ERROR manager.SqlManager: Error executing statement: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(1 = 0)' at line 7
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '(1 = 0)' at line 7
... View more
02-12-2016
05:20 PM
no luck, I am using it as, sqoop import --connect jdbc:mysql://localhost/test --username sat -P --query 'select emp_no, salary from
salaries where salary>8000 $CONDITIONS' --split-by emp_no --target-dir /user/cloudera/tmp/ff
... View more
02-12-2016
05:07 PM
1 Kudo
Yes @Neeraj Sabharwal & @Artem Ervits. I am able to execute it using below script, sqoop import --connect jdbc:mysql://localhost/test --username sat -P --query 'select
emp_no,
salary
from
salaries
where
"$CONDITIONS"' --split-by emp_no --target-dir /user/cloudera/tmp/ff but, still my requirement is not met. I am trying to execute below query using sqoop, select emp_no,salary from salaries where salary >8000 Please let me know on the same. Thanks.
... View more
02-12-2016
04:45 PM
This is my script: sqoop import --connect jdbc:mysql://localhost/test --username sat -P --query 'select
emp_no, \
salary \
from \
salaries \
where \
$CONDITIONS' --split-by emp_no --target-dir /user/cloudera/tmp/ Error: 16/02/12 08:42:22 ERROR manager.SqlManager: Error executing statement: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\
salary \
from \
salaries \
where \
(1 = 0)' at line 2
com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '\
salary \
from \
salaries \
where \
(1 = 0)' at line 2
... View more
02-12-2016
04:19 PM
Hi Neeraj, I don't want to get all columns from my table.
... View more
02-12-2016
04:12 PM
1 Kudo
Hi, I am new to sqoop and trying to write few simple sqoop scripts. I am trying to query a table with where clause condition. When I give the where clause condition it's failing. Here is my simple script: sqoop import \ --connect jdbc:mysql://localhost/test \
--username sat \
-P \ --query 'select emp_no,salary from salaries where salary >8000' \
--target-dir /user/ \
--m 1 I went through sqoop documentation and it was mentioned that I should use $CONDITIONS , but here my question is, if I use this parameter then , where I can specify my where clause condition. Please help me on the same. Thanks, Satish.
... View more
Labels:
- Labels:
-
Apache Sqoop
02-04-2016
02:50 AM
2 Kudos
Looks like there was a firewall that was blocking. I used my home wifi and I am able to get in successfully. Thanks.
... View more