Member since
10-01-2015
3933
Posts
1150
Kudos Received
374
Solutions
My Accepted Solutions
Title | Views | Posted |
---|---|---|
3365 | 05-03-2017 05:13 PM | |
2796 | 05-02-2017 08:38 AM | |
3076 | 05-02-2017 08:13 AM | |
3006 | 04-10-2017 10:51 PM | |
1517 | 03-28-2017 02:27 AM |
02-01-2017
12:12 AM
Login with HBase user and grant access to hbase_user1 on the table grant 'user', 'RWXCA', 'TABLE', 'CF', 'CQ' https://hbase.apache.org/book.html#hbase.accesscontrol.configuration You can review the following tutorial as well http://hortonworks.com/hadoop-tutorial/manage-security-policy-hive-hbase-knox-ranger/
... View more
01-31-2017
12:15 PM
Please run the following command on both servers and compare. You might have missing packages. On RHEL, command is rpm -qa | oozie*
... View more
01-31-2017
12:09 PM
1. If you're using Tez, it has a really nice view for those kinds of statistics. Ambari provides access to the view in a secure way. 2. SmartSense is an offering for Hortonworks customers and leverages Ambari Metrics Collector to provide you with metrics across Hive, HBase, HDFS, Spark, YARN, etc. Including capacity projections months ahead. It is provided via Apache Spark queries and Apache Zeppelin notebook. 3. You can look elsewhere like Dr. Elephant to build your own solution I'm biased but SmartSense I believe gives the best overall view of a cluster. If you are a customer, I don't see a reason not to use it.
... View more
01-31-2017
02:19 AM
1 Kudo
@Dayou Zhou using json-simple import org.json.JSONObject;
public class JSONParser {
public static void main(String[] args) {
String jsonStr = "{\"field1\":1,\"field2\":\"abc\"}";
JSONObject json = new JSONObject(jsonStr);
Person person = new Person();
person.setKey(json.getInt("field1"));
person.setValue(json.getString("field2"));
System.out.println(person.toString());
}
}
class Person {
int key;
String value;
@Override
public String toString() {
return "Person{" + "key=" + key + ", value=" + value + '}';
}
public int getKey() {
return key;
}
public void setKey(int key) {
this.key = key;
}
public String getValue() {
return value;
}
public void setValue(String value) {
this.value = value;
}
}
maven dependency <dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20160810</version>
</dependency>
<dependency>
<groupId>com.googlecode.json-simple</groupId>
<artifactId>json-simple</artifactId>
<version>1.1.1</version>
<type>jar</type>
</dependency>
output Person{key=1, value=abc}
... View more
01-31-2017
01:12 AM
1 Kudo
Perhaps you should paste your code for suggestion but this website is one I always reference http://www.mkyong.com/java/how-do-convert-java-object-to-from-json-format-gson-api/
... View more
01-30-2017
11:32 PM
Please select the best answer, from your comments, it is not clear who'd helped you the most
... View more
01-30-2017
06:21 PM
3 Kudos
@Prabhu M Prior to Hive 0.13, Hive relied on rule-based optimization and in Hive 0.14 we introduced CBO with Calcite. Please see slide 5 http://www.slideshare.net/julianhyde/w-435phyde-3
... View more
01-30-2017
03:39 PM
nifi is decoupled from Hadoop, you can get by with just a few nodes (3) to get decent throughput but flexibility and ease of use will pay for itself in the long run. We typically recommend to separate HDP and HDF.
... View more
01-30-2017
03:28 PM
1 Kudo
Pycharm is a good IDE for Python development https://www.jetbrains.com/pycharm/
... View more
01-30-2017
02:09 PM
@Amber Kulkarni please open this as a new thread.
... View more