Home | About | Sematext search-lucene.com search-hadoop.com
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce >> mail # user >> Setting cache control header in jetty server used by hadoop webhdfs


Copy link to this message
-
Setting cache control header in jetty server used by hadoop webhdfs
Hello friends i m using webhdfs to fetch a file from hadoop

seems that jetty server is used by hadoop for this purpose

 does anyone know how to set response headers in jetty configurations used
by hadoop
http://termin1:50070/webhdfs/v1/Name1Home/new_file_d561yht35-9a1a-4a7b-9n.jpg?op=OPEN
when i am accessing this url i getting this
 response header

Content-Length 0
Content-Type application/octet-stream
Location
http://termin1:50070/webhdfs/v1/Name1Home/new_file_d561yht35-9a1a-4a7b-9n.jpg?op=OPEN&namenoderpcaddress=termin1:9001&offset=0
Server Jetty(6.1.26)
is there any way i can set cache control in this response header in jetty
server which is used by hadoop
NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB