top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

accessing hadoop filesystem from Tomcat

+3 votes
318 views

I want to confirm if my understanding with Hadoop FileSystem object is correct or not. From the source code of org.apache.hadoop.fs. FileSystem (either from version 1.0.4 or 2.2.0), the method

public static FileSystem get(URI uri, Configuration conf) throws IOException 

is using some sort of cache:

CACHE.get(uri, conf); 

My understanding is that Tomcat usually create multiple threads to handle Http requests, and those threads will use the same FileSystem object (because of the cache).

This will resulting in an error, right?

The next question is, if I want to disable the cache, should I just introduce a new key "fs.hdfs.impl.disable.cache" and set the value to "true"?

And another key "fs.har.impl.disable.cache" for HAR FileSystem?

posted Jan 6, 2014 by Deepti Singh

Looking for an answer?  Promote on:
Facebook Share Button Twitter Share Button LinkedIn Share Button

Similar Questions
+2 votes

Is there a standard way to access ServletContext from a WebSocket ServerEndpoint ?

0 votes

I have a question. I'm doing some oAuth stuff, and the remote site is redirecting me to:

my_url.html#something=blah&other_thing=blah-blah

I can see this is the url in the redirect of my browser bar.

What I can't figure out is how to access the part of the URL after the pound sign. I've tried getRequestURI(), getPathInfo(), getServletPath(), getPathTranslated(), and nothing is working. Also, the elements are (correctly) not showing up in the parameters collection.

How can I get that part of the URL from inside a servlet? I am using tomcat.

+1 vote

How do I start and stop just the tomcat admin application from a command line?

I had someone try to guess the password to my Tomee-Plume server last night. Thankfully I changed the default password and the hacker only tried twice. I want to be able to keep the admin application closed most of the time. On the rare occasion that I need access to the tomcat admin console I would like to start it up only for a brief period of time and then stop it.

Internet searches showed me how to stop other applications using the tomcat admin application. I want to stop just the Tomcat admin application not the whole server.

0 votes

I am just trying upgrade tomcat 7 to latest GA 8 for my application, I am seeing quite lots of change in web dav functionality.

The org.apache.naming.resources.ProxyDirContext do not exists do anybody know where I can find the alternative? in the past we got use resource to lookup something but now is not this one, can anybody know any doc?

...