Академический Документы
Профессиональный Документы
Культура Документы
Advantage of sqoop 2
The motivation behind Sqoop 2 was to make Sqoop easier to use by having a web
application run Sqoop. This allows you to install Sqoop and use it from anywhere.
having a REST API for operation and management enables Sqoop to integrate better
with external systems such as Apache Oozie.
Installation option
Binary Tarball
Package
package benefit
seamless integration with the operating system: for example, Configuration files are
stored in /etc/ and logs in /var/log and anc configuration in /etc/sqoop/conf
Installing packages is simpler than using tarballs. They are already integrated with
the operating system and will automatically download and install most of the
required dependencies during the Sqoop installation.
sudo yum install sqoop
sudo apt-get install sqoop
RedHat/CentOS
Ubuntu
Tarball
package
package
Tarball
connector.fully.qualified.class.name=/full/path/to/the/jar
Sqoop Command
sqoop
TOOL PROPERTY_ARGS
SQOOP_ARGS
[-- EXTRA_ARGS]
TOOL: import/export
PROPERTY_ARGS: Java properties Dname=value
SQOOP_ARGS: sqoop parameter
EXTRA_ARGS: for specialized connectors
Incremental loading
sqoop import \
--connect jdbc:mysql://mysql.example.com/sqoop \
--username sqoop \
--password sqoop \
--table visits \
--incremental append \
--check-column id \
--last-value 1
job
job
job
job
--exec visits
--list
--delete visits
--show visits
</property>
</configuration>