You cannot βopenβ the file using hdfs dfs -text because it is not a text file. Parquet files are written to disk differently compared to text files.
And on the same issue, the Parquet project provides parquet tools to complete the tasks you are trying to do. Open and see the scheme, data, metadata, etc.
Look at the project parquet tool (which is put simply, the jar file). parquet-tools
Also, Cloudera, which supports and makes a significant contribution to Parquet, also has a nice page with examples of using parquet tools. An example from this page for your use case is
parquet-tools schema part-m-00000.parquet
Place an order on the Cloudera page. Using parquet file format with Impala, Hive, Pig, HBase and MapReduce
Urvishsinh mahida
source share