Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-18284

Ambari PigView stores the script in HDFS in non UTF-8 format

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: trunk
    • Fix Version/s: 2.5.0
    • Component/s: ambari-views
    • Labels:
    • Environment:

      All

      Description

      • In Ambari PigView if we have a script like following containing some special characters like 'á'
      STOCK_A = LOAD '/user/admin/dummy.csv' USING PigStorage('á'); 
      DESCRIBE STOCK_A;
      

      Then after executing the script we see that in the HDFS it is stored as following:

      hdfs dfs -cat /user/admin/pig/scripts/testlatin-2016-08-30_12-15.pig
      STOCK_A = LOAD '/user/admin/dummy.csv' USING PigStorage('?'); 
      DESCRIBE STOCK_A;
      

      Notice: the 'á' is converted to '?'

        Attachments

        1. AMBARI-18284.patch
          1 kB
          Jay SenSharma

          Issue Links

            Activity

              People

              • Assignee:
                jaysensharma Jay SenSharma
                Reporter:
                jaysensharma Jay SenSharma
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: