I am stuck at using python variable in Linux path to display contents, any advice/guidance/hints would be very helpful.
Below is my python script:
#!/bin
TypeError:not enough arguments for format string
You need to use tuple/list/etc for format string, eg:
os.system('hadoop fs -cat /bla/bla/%s/bla/%s/file.txt ' % (db, path))