用xshell工具讀取parquet檔案欄位和內容

2021-10-09 03:41:06 字數 486 閱讀 3631

xshell 工具

進入spark-shell視窗

1. spark-shell
2. val sqlcontext = new org.apache.spark.sql.sqlcontext(sc)
hdfs://cdp是defaultfs,也可以不寫,如下:

讀30行資料

4. parquetfile.take(30).foreach(println)
讀表中字段

5.parquetfile.printschema()
就這。。。。。。

最開始我搜的是:「如何直接讀取parquet檔案/在堡壘機如何將一張表資料匯出到本地」

睡了一覺洗了個腦子回來搜的是:「xshell 用spark讀取paquet檔案」 搜到了

自己那麼笨,還嫌世界太難 to me.

XShell工具sftp使用

關於如何在linux與linux,以及linux與windows之前傳輸檔案,如下 sftp home test help bye finish your sftp session cd change your remote working directory clear clear screen ...

Linux入門工具 Xshell

linux入門工具 xshell xshell是一款windows下非常優秀的遠端登入linux主機的工具,下面介紹一些非常實用的技巧給大家。說明快捷鍵 與檔案選單的新建相同 alt n 與檔案選單的開啟相同 alt o 與檔案選單的斷開相同 alt c 切換到全屏模式 alt enter 把鍵盤焦...

XShell工具sftp使用

關於如何在linux與linux,以及linux與windows之前傳輸檔案,如下 sftp home test help bye finish your sftp session cd change your remote working directory clear clear screen ...