Review Board 1.7.22


SQOOP-1132 Print out Sqoop version into log during execution

Review Request #12456 - Created July 10, 2013 and updated

Jarek Cecho
SQOOP-1132
Reviewers
Sqoop
sqoop-trunk
I've added simple LOG statement to the Sqoop constructor.
It seems that the version is being printed out as expected.

Diff revision 1 (Latest)

  1. src/java/org/apache/sqoop/Sqoop.java: Loading...
src/java/org/apache/sqoop/Sqoop.java
Revision 2e1725d578e521a2f1b289e251cafab4ed5aa8a4 New Change
[20] 86 lines
[+20] [+] public class Sqoop extends Configured implements Tool {
87
   * @param tool the SqoopTool to run in the main body of Sqoop.
87
   * @param tool the SqoopTool to run in the main body of Sqoop.
88
   * @param conf the Configuration to use (e.g., from ToolRunner).
88
   * @param conf the Configuration to use (e.g., from ToolRunner).
89
   * @param opts the SqoopOptions which control the tool's parameters.
89
   * @param opts the SqoopOptions which control the tool's parameters.
90
   */
90
   */
91
  public Sqoop(SqoopTool tool, Configuration conf, SqoopOptions opts) {
91
  public Sqoop(SqoopTool tool, Configuration conf, SqoopOptions opts) {

    
   
92
    LOG.info("Running Sqoop version: " + new SqoopVersion().VERSION);

    
   
93

   
92
    if (null != conf) {
94
    if (null != conf) {
93
      setConf(conf);
95
      setConf(conf);
94
    }
96
    }
95

    
   
97

   
96
    this.options = opts;
98
    this.options = opts;
[+20] [20] 146 lines
  1. src/java/org/apache/sqoop/Sqoop.java: Loading...