Member since
08-18-2016
53
Posts
3
Kudos Received
1
Solution
My Accepted Solutions
Title | Views | Posted |
---|---|---|
6594 | 01-17-2017 06:19 AM |
10-05-2016
08:06 AM
Yeah its open jdk and java version 1.6.0
... View more
10-05-2016
06:44 AM
@Rajeshbabu Chintaguntla
By mistake i posted [user@ bin]$ sqlline.py :/hbase
I have given [user@ bin]$ sqlline.py localhost:2181:/hbase only.
... View more
10-05-2016
05:45 AM
I have installed Apache Phoenix package on all HBASE master node and region
servers. After I
configured, I tried to run either sqlline.py or psql.py via edge node , but I faced this
error, Please look into this and let me know. [user@<edgenode host address> bin]$ sqlline.py Hostname:port:/hbase Setting property: [isolation,
TRANSACTION_READ_COMMITTED] issuing: !connect
jdbc:phoenix:<Hostname:port>:/hbase none none
org.apache.phoenix.jdbc.PhoenixDriver Connecting to
jdbc:phoenix:<Hostname:port>:/hbase java.lang.UnsupportedClassVersionError:
JVMCFRE003 bad major version; class=org/apache/phoenix/jdbc/PhoenixDriver,
offset=6
at java.lang.ClassLoader.defineClass(ClassLoader.java:286)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:74)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:538)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:449)
at java.net.URLClassLoader.access$300(URLClassLoader.java:77)
at java.net.URLClassLoader$ClassFinder.run(URLClassLoader.java:1041)
at java.security.AccessController.doPrivileged(AccessController.java:448)
at java.net.URLClassLoader.findClass(URLClassLoader.java:427)
at java.lang.ClassLoader.loadClass(ClassLoader.java:676)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:358)
at java.lang.ClassLoader.loadClass(ClassLoader.java:642)
at java.lang.Class.forNameImpl(Native Method)
at java.lang.Class.forName(Class.java:240)
at sqlline.DatabaseConnection.connect(DatabaseConnection.java:115)
at sqlline.DatabaseConnection.getConnection(DatabaseConnection.java:203)
at sqlline.Commands.connect(Commands.java:1064)
at sqlline.Commands.connect(Commands.java:996)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:60)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:611)
at sqlline.ReflectiveCommandHandler.execute(ReflectiveCommandHandler.java:36)
at sqlline.SqlLine.dispatch(SqlLine.java:804)
at sqlline.SqlLine.initArgs(SqlLine.java:588)
at sqlline.SqlLine.begin(SqlLine.java:656)
at sqlline.SqlLine.start(SqlLine.java:398)
at sqlline.SqlLine.main(SqlLine.java:292) sqlline version 1.1.8 0:
jdbc:phoenix:Hostname>
... View more
Labels:
- Labels:
-
Apache Ambari
-
Apache HBase
-
Apache Phoenix
10-04-2016
02:17 PM
In my existing cluster, when i try to access https://<ambari server hostname>:8080 then its only showing "loading..." I have checked the logs its showing error as follows: 04
Oct 2016 07:18:25,743 ERROR [qtp-ambari-agent-54] HeartBeatHandler:198 -
CurrentResponseId unknown for <hostname> - send register command
There is no changes i have made in Hosts file. I have also iptables and selinux both are off and disbaled respectively. I have restarted the server and agent both twice. Also tried to access it in another browser with proxy enabled but not working. Also checked the port no. 8080, its also listening. Please suggest what can be the possible reasons and how to troubleshoot this problem?
... View more
Labels:
- Labels:
-
Apache Ambari
10-04-2016
02:05 PM
Yeah it was a wrong port.
Thanks for the resolution.
... View more
09-22-2016
04:52 AM
I am trying to connect to Hbase REST API by using the below mention command: curl -I -H "Accept: text/xml" http://myhost:8085/messagestable/schema HTTP/1.1 404 Not Found
Its showing the 404 error. Can anyone please suggest what are the possible reasons and resolution for this problem?
... View more
Labels:
- Labels:
-
Apache Hadoop
-
Apache HBase
08-25-2016
07:44 AM
Thanks for your help, Everything is working fine now. I just needed one more modification in this script, i wanted to take myFile.txt from command line, like suppose everytime i dont want to change the content of myFile.txt, instead i want to use different file, so i can do by command line. please suggest how to do that.
... View more
08-24-2016
03:05 AM
Unfortunately i dont have sudo access as well as the hdfs password.
someone suggested me to do as follows: #!/bin/bash while IFS=$'\t' read -r -a myOptions do echo "directory: ${myOptions[0]}" echo "ownership: ${myOptions[1]}" echo "permissions: ${myOptions[2]}" echo "quota: ${myOptions[3]}" sudo su hdfs -c "hdfs dfs -mkdir ${myOptions[0]}" sudo su hdfs -c "hdfs dfs -chown ${myOptions[1]} ${myOptions[0]}" sudo su hdfs -c "hdfs dfs -chmod ${myOptions[2]} ${myOptions[0]}" sudo su hdfs -c "hdfs dfsadmin -setSpaceQuota ${myOptions[3]} ${myOptions[0]}" done< myFile.txt myFile.txt
/usr/t1 hive:hive 776 1T /usr/t2 hdfs:hdfs 775 100G But its also giving error as follows: sh create_and_set_quota_alternative.sh directory: /usr/t1 ownership: hive:hive permissions: 776 quota: 1T
Error: JAVA_HOME is not set and could not be found. Error: JAVA_HOME is not set and could not be found.
Error: JAVA_HOME is not set and could not be found.
Error: JAVA_HOME is not set and could not be found.
directory: /usr/t2
ownership: hdfs:hdfs permissions: 775 quota: 100G Error: JAVA_HOME is not set and could not be found. Error: JAVA_HOME is not set and could not be found.
Error: JAVA_HOME is not set and could not be found. Error: JAVA_HOME is not set and could not be found.
... View more
08-23-2016
11:53 AM
#!/bin/bash sudo su hdfs << EOF while IFS=$'\t' read -r -a myOptions do echo "directory: ${myOptions[0]}" echo "ownership: ${myOptions[1]}" echo "permissions: ${myOptions[2]}" echo "quota: ${myOptions[3]}" hdfs dfs -mkdir ${myOptions[0]}
hdfs dfs -chown ${myOptions[1]} ${myOptions[0]}
hdfs dfs -chmod ${myOptions[2]} ${myOptions[0]}
hdfs dfsadmin -setSpaceQuota ${myOptions[3]} ${myOptions[0]} done< myFile.txt EOF I have used the above script..but this is actually giving an error bash: line 15: myFile.txt: Permission denied Please suggest @Michael Young
... View more
- « Previous
- Next »