Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-14525

beeline still writing log data to stdout as of version 2.1.0

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.1.0, 2.2.0
    • None
    • Beeline
    • Beeline

    Description

      simple test. note that i'm looking to get a tsv file back.

      $ beeline -u dwrdevnn1 --showHeader=false --outputformat=tsv2 <<SQL >stdout 2>stderr
      > select count(*)
      > from default.dual;
      > SQL
      

      instead i get this in stdout:

      $ cat stdout
      0: jdbc:hive2://dwrdevnn1.sv2.trulia.com:1000> select count(*)
      . . . . . . . . . . . . . . . . . . . . . . .> from default.dual;
      0
      0: jdbc:hive2://dwrdevnn1.sv2.trulia.com:1000> 
      

      i should only get one row which is the result of the query (which is 0) - not the ovthe loggy kind of lines you see above. that stuff goes to stderr my friends.

      also i refer to this ticket b/c the last comment suggested so - its close but not exactly the same.
      https://issues.apache.org/jira/browse/HIVE-14183

      Attachments

        1. HIVE-14525.1.patch
          1.0 kB
          Miklos Csanady
        2. HIVE-14525.2.patch
          1.0 kB
          Miklos Csanady
        3. HIVE-14525.3.patch
          0.9 kB
          Miklos Csanady
        4. HIVE-14525.4.patch
          0.9 kB
          Miklos Csanady
        5. HIVE-14525.patch
          0.9 kB
          Miklos Csanady

        Issue Links

          Activity

            People

              Unassigned Unassigned
              spragues stephen sprague
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated: