We use proprietary and third party´s cookies to improve your experience and our services, identifying your Internet Browsing preferences on our website; develop analytic activities and display advertising based on your preferences. If you keep browsing, you accept its use. You can get more information on our Cookie Policy
Cookies Policy

First time here? Check out the FAQ!

Ask Your Question
0

cosmos node is in safe mode, cannot execute query on hive

asked Oct 12 '15

Hello, since last week when I try to query cosmos cluster with hive I'll get this error.

hive> select * from muv_tweet limit 10;
FAILED: RuntimeException org.apache.hadoop.ipc.RemoteException: org.apache.hadoop.hdfs.server.namenode.SafeModeException: Cannot create directory /tmp/hive-alessio.caiazza/hive_2015-10-12_12-59-27_269_6614332063661032399-1. Name node is in safe mode.
Resources are low on NN. Safe mode must be turned off manually.
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirsInternal(FSNamesystem.java:2140)
    at org.apache.hadoop.hdfs.server.namenode.FSNamesystem.mkdirs(FSNamesystem.java:2114)
    at org.apache.hadoop.hdfs.server.namenode.NameNode.mkdirs(NameNode.java:892)
    at sun.reflect.GeneratedMethodAccessor586.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:597)
    at org.apache.hadoop.ipc.RPC$Server.call(RPC.java:557)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1439)
    at org.apache.hadoop.ipc.Server$Handler$1.run(Server.java:1435)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAs(Subject.java:396)
    at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1278)
    at org.apache.hadoop.ipc.Server$Handler.run(Server.java:1433)

It sounds like a cluster problem and not something strictly related to my query.

edit

1 answer

Sort by » oldest newest most voted
0

answered Oct 21 '15

frb gravatar image

As the user should probably noticed, this was solved some time ago. It is not usual, but from time to time the cluster automatically enters in safe mode in certain scenarios in order to preserve the integrity of the data.

edit link

Comments

Yes I noticed. My question has been in moderation for about 10 days. Can I write an email directly to you if the same problem arise in the future?

nolith gravatar imagenolith (Oct 21 '15)

Yes, this kind of service availability problems are better to be emailed rather than posted as a community question. Or if posted, an email is always useful for us, in order to react ASAP.

frb gravatar imagefrb (Oct 21 '15)
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: Oct 12 '15

Seen: 2,691 times

Last updated: Oct 21 '15