Advertisement
Guest User

Untitled

a guest
Dec 12th, 2017
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. # Indica el comando a ejecutar
  2. import
  3.  
  4. # Conectividad con base de datos
  5. --driver
  6. org.apache.derby.jdbc.ClientDriver
  7. --connect
  8. jdbc:derby://localhost:1527/bigdata;create=true
  9. --username
  10. curso
  11. --password
  12. curso
  13.  
  14.  
  15. # Datos que importamos a HDFS
  16. #--table
  17. #VUELOS
  18. --query
  19. SELECT * FROM CURSO.MOVIMIENTOS WHERE $CONDITIONS
  20. #--where
  21. #' '
  22. # Configuración de Hadoop
  23. --num-mappers
  24. 4
  25. --split-by
  26. ID
  27. #NOMBRE_COLUMNA
  28. # Directorio dentro de HDFS
  29. # Borrar el directorio de HDFS si existe
  30. --delete-target-dir
  31. --target-dir
  32. hdfs://localhost:9000/sqoop
  33. #--compress
  34. #--compression-codec
  35. #gzip
  36. # Definir el formato de los datos
  37. --as-textfile
  38. # SOLO para Texto
  39. --lines-terminated-by
  40. \n
  41. --fields-terminated-by
  42. ;
  43. #--escaped-by
  44. #\\
  45. --enclosed-by
  46. "'"
  47. #--as-sequencefile
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement