Przeglądaj źródła

AMBARI-16713. Hive View does not work with multi-bytes characters.(Gaurav Nagar via dipayanb)

Dipayan Bhowmick 9 lat temu
rodzic
commit
741e263452

+ 1 - 1
contrib/views/utils/src/main/java/org/apache/ambari/view/utils/hdfs/HdfsUtil.java

@@ -44,7 +44,7 @@ public class HdfsUtil {
     try {
       synchronized (hdfs) {
         stream = hdfs.create(filePath, true);
-        stream.writeBytes(content);
+        stream.write(content.getBytes());
         stream.close();
       }
     } catch (IOException e) {