다음 표가 있습니다. MYSQL의 mergetab.Sqoop 증분 가져 오기 실패
id | name | city | rectime |
---+-----------+-------------+---------------------+
1 | Sidhartha | Hyderabad | 2017-04-18 15:31:22 |
2 | Saketh | Bengaluru | 2017-04-18 15:32:37 |
3 | Sunny | Mumbai | 2017-04-18 15:32:57 |
4 | Bobby | Delhi | 2017-04-18 15:33:15 |
나는 그것에서 기록을 삽입 한 그것은 다음과 같이 보입니다 :
id | name | city | rectime |
---+-----------+-------------+---------------------+
1 | Sidhartha | Hyderabad | 2017-04-18 15:31:22 |
2 | Saketh | Bengaluru | 2017-04-18 15:32:37 |
3 | Sunny | Mumbai | 2017-04-18 15:32:57 |
4 | Bobby | Delhi | 2017-04-18 15:33:15 |
5 | Madhavi | Dharmavaram | 2017-04-18 16:57:09 |
임 다음 명령을 사용하여 Sqoop을 증분 가져 오기를 수행하려고 :
sqoop import --connect jdbc:mysql://127.0.0.1/mydb --table mergetab --username root --password cloudera --hive-import --hive-table mergetab --incremental-append --check-column id --last-value $(hive -S -e "select max(id) from mergetab");
임은 점점 다음과 같은 오류가 발생하여 sqoop 명령에 무엇이 잘못되었는지 알 수 없습니다. 오류 :
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Error parsing arguments for import:
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: WARN:
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: The
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: method
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: class
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: org.apache.commons.logging.impl.SLF4JLogFactory#release()
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: was
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: invoked.
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: WARN:
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: Please
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: see
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: http://www.slf4j.org/codes.html#release
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: for
17/04/18 17:35:26 ERROR tool.BaseSqoopTool: Unrecognized argument: an
Im Cloudera VM에서 이것을 연습합니다. 누구든지 내가 여기서하고있는 실수가 무엇인지 알려 주실 수 있습니까?
에 할당 된 값을 얻기 위해 다음과 같이 당신은
showHeader
및outputformat
과 직선을 사용할 수 있습니다 .. .wtf ... "로 명령하십시오. 대체 무슨 짓을했는지 알아? –나는 노력했다. FAILED : ParseException 라인 1 : 0은 '하이브'근처의 입력을 인식 할 수 없습니다. - ''S '. 하지만 '-S'가 없어도 여전히 동일한 오류 메시지가 표시됩니다. – Sidhartha