Support Questions
Find answers, ask questions, and share your expertise

Knox sample for Hbase Java,i've configured knox for handling hbase rest calls.But programatically i'm unable to understand how i can create a java object with url(https://host:8443/gateway/default/hbase).

New Contributor
 
2 REPLIES 2

Re: Knox sample for Hbase Java,i've configured knox for handling hbase rest calls.But programatically i'm unable to understand how i can create a java object with url(https://host:8443/gateway/default/hbase).

New Contributor

public void setup() throws IOException {

setupValues();

client = new Client(new Cluster().add(HOST, PORT));

Response response = client.get("/"); assert (response.getCode() < 400);

table = new RemoteHTable(client, tableName);

assert (table.getName().getNameAsString().equalsIgnoreCase(tableName)); }

Rather giving simply host and port (client = new Client(new Cluster().add(HOST, PORT));) when knox is configured we need to provide the mentioned URL,so can you let me know how to provide/create the object? in java

Re: Knox sample for Hbase Java,i've configured knox for handling hbase rest calls.But programatically i'm unable to understand how i can create a java object with url(https://host:8443/gateway/default/hbase).

Mentor

@ravi srip has this been resolved? Can you provide your solution?