169.Redirecting Sqoop Logs into files

  • To redirect log messages to other files
    • sqoop eval --connect jdbc:mysql://ms.itversity.com:3306/retail_db --username retail_user --password itversity --query "SELECT * FROM orders LIMIT 10" l>query.out 2>query.err
  • In above command,
    • 1 refers to standard output, Where output will be redirected and saved to file query.out.
    • 2 refers to standard error, Where error message will be redirected and saved in file query.err

Share this post