Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Indica el comando a ejecutar
- import
- # Conectividad con base de datos
- --driver
- org.apache.derby.jdbc.ClientDriver
- --connect
- jdbc:derby://localhost:1527/bigdata;create=true
- --username
- curso
- --password
- curso
- # Datos que importamos a HDFS
- #--table
- #VUELOS
- --query
- SELECT * FROM CURSO.MOVIMIENTOS WHERE $CONDITIONS
- #--where
- #' '
- # Configuración de Hadoop
- --num-mappers
- 4
- --split-by
- ID
- #NOMBRE_COLUMNA
- # Directorio dentro de HDFS
- # Borrar el directorio de HDFS si existe
- --delete-target-dir
- --target-dir
- hdfs://localhost:9000/sqoop
- #--compress
- #--compression-codec
- #gzip
- # Definir el formato de los datos
- --as-textfile
- # SOLO para Texto
- --lines-terminated-by
- \n
- --fields-terminated-by
- ;
- #--escaped-by
- #\\
- --enclosed-by
- "'"
- #--as-sequencefile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement