Hbase Rest Server Interview Questions

Hbase Rest Server Interview Questions

What is full form of Hbase REST ?

Hbase REST full form is REpresentational State Transfer

What is the main work of Hbase REST ?

Our HadoopTpoint App is now available in google play store,please rate and comment it in play store : W3Schools

REST is one type of a Web Service.It relies on a stateless, client-server, cacheable communications protocol and virtually used in all cases

What is another representation for REST ?

Sometimes we represent the REST Like “ReST

Hbase Rest Server Interview Questions

Which Type of Protocol is used for HBASE REST ?

HTTP protocol

How Many Key Principles for Hbase REST ?

5

What are the Key Principles for Hbase REST ?

i) Give every “thing” an ID

ii) Link things together

iii) Use standard methods

iv) Resources with multiple representations

v) Communicate statelessly

Do we need to Install Any software for REST server In Hbase ?

No

Why No software required for Hbase REST ?

already a jar available in Hbase

What is the default port number for Hbase REST ?

8080

How can we set the port number Dynamically for Hbse REST ?

root@hadoop:~$ hbase rest start -p 8070

How can start Hbase REST server  ?

root@hadoop:~$ hbase rest start -p 8070

Is there any command for to see the list of tables by using Hbase REST server ?

Yes,there is two ways to see the list of tables

i) by using web browser

ii) by using terminal

How can see the List of tables In web browser ?

http://localhost:8070

How can see the List of tables In web terminal ?

root@hadoop:~$ curl http://localhost:8070/

What is curl ?

curl is a tool to transfer data from or to a server, using one of the supported protocols (DICT, FILE, FTP, FTPS, GOPHER, HTTP, HTTPS, IMAP, IMAPS, LDAP, LDAPS, POP3, POP3S, RTMP, RTSP, SCP, SFTP, SMTP, SMTPS, TELNET and TFTP). The command is designed to work without user interaction.

how to see the table schema in Hbase table In Browser  ?

http://localhost:8070/airlines/schema  

how to see the table schema in Hbase table In terminal ?

root@hadoop:~$ curl http://localhost:8070/airlines/schema  

How to see the list of tables In JSON format by using Hbase REST ?

root@hadoop:~$ curl -H “Accept:application/json” http://localhost:8070

How to see the list of tables In XML format by using Hbase REST ?

root@hadoop:~$ curl -H “Accept: text/xml” http://localhost:8070/

How to display a table schema in JSON Format by using Hbase REST ?

root@hadoop:~$ curl http://localhost:8070/airlines/schema

How to display a table schema in XML Format by using Hbase REST ?

root@hadoop:~$ curl -H “Accept:text/xml” http://localhost:8070/airlines/schema

How to display the regions by using HBase REST in Terminal ?

root@hadoop:~$ curl http://localhost:8070/airlines/regions

How to retrieve the single values From table In Browser ?

http://localhost:8070/airline/row4/flightbetween:destination

How to retrieve the single values From table In terminal?

root@hadoop:~$  curl http://localhost:8070/airline/row4/flightbetween:destination

When we have to change the default port number ?

If you have any servers like apache tomcat In your system,at that time the port number 8080 has reserved by that servers,at that we change the port number for Hbase REST

Speak Your Mind

*