Important pont to note here is while refering path of <JARNAME> , you should not put gs:// prefix , instead you should use ("./") in classpath . Because spark try to construct classpath with exact string mentioned in this variable