Skip to main content
Jagatheeshr
Gold ⭐️
Gold ⭐️
Apr 7, 2016 9:56 PM UTC

What is Snakebite ? and How to use it with HDP ?

  • Oct 5, 2026 9:41 AM UTC
  • 3 replies
  • 9280 views
  • Translate All

Snakebite is a pure python based HDFS client which is much faster than the classic hdfs client operations(hadoop fs / hdfs dfs).Snakebite is developed by Spotify. More details can be found at

https://github.com/spotify/snakebite

I am using HDP 2.4 and Ambari 2.2.1.1 on CentOS/

1). Install Python Pip.

yum install python-pip

2).Install Snakebite.

pip install snakebite

Now snakebite is installed.

You can run below sample commands.

snakebite ls /tmp

snakebite ls /

Use snakebite help for more options.

Happy Snakebiting!

3 replies

bleonhardi
Gold ⭐️
Apr 11, 2016 7:48 PM UTC

Does it support Kerberos by now? Would be very nice to be able to use it instead of os.system("hadoop ... ") commands as I currently do.

Translate
Jagatheeshr
Gold ⭐️
Gold ⭐️
Apr 15, 2016 11:08 AM UTC

@Benjamin Leonhardi. Yes. you need to do

pip install "snakebite[kerberos]"

I haven't installed on kerberized cluster. Will try and let you know.

Translate
bleonhardi
Gold ⭐️
Apr 17, 2016 7:40 PM UTC

cool thanks, that should speed things up.

Translate