I am using Python to read file from HDFS. The library used is Hadoopy.
Earlier, I was able to write the corresponding file to HDFS using Hadoopy.
But it does not read from HDFS and store into the local file system.
The code is pasted below:
import hadoopy
hdfs_path = 'hdfs://localhost:54310/user/hduser/sample1'
def main():
hadoopy.readtb("abc4.txt",hdfs_path)
if __name__ == '__main__':
main()
How to read the file using Hadoopy ?