task-7

PHOTO EMBED

Sat Oct 11 2025 08:08:00 GMT+0000 (Coordinated Universal Time)

Saved by @cse41 #bash

hbase shell
list
create 'employee_details', 'PersonalInfo', 'ProfessionalInfo'
put 'employee_details', 'emp1', 'PersonalInfo:name', 'John Doe'
put 'employee_details', 'emp1', 'PersonalInfo:age', '29'
put 'employee_details', 'emp1', 'PersonalInfo:gender', 'Male'
put 'employee_details', 'emp1', 'ProfessionalInfo:designation', 'Engineer'
put 'employee_details', 'emp1', 'ProfessionalInfo:salary', '50000'
put 'employee_details', 'emp1', 'ProfessionalInfo:department', 'R&D'

put 'employee_details', 'emp2', 'PersonalInfo:name', 'Alice Smith'
put 'employee_details', 'emp2', 'PersonalInfo:age', '32'
put 'employee_details', 'PersonalInfo:gender', 'Female'
put 'employee_details', 'emp2', 'ProfessionalInfo:designation', 'Manager'
put 'employee_details', 'emp2', 'ProfessionalInfo:salary', '75000'
put 'employee_details', 'emp2', 'ProfessionalInfo:department', 'HR'
scan 'employee_details'
scan 'employee_details', { FILTER => "SingleColumnValueFilter('PersonalInfo','name',=,'binary:John Doe')" }
put 'employee_details', 'emp1', 'ProfessionalInfo:salary', '60000'
get 'employee_details', 'emp1'
deleteall 'employee_details', 'emp1'
get 'employee_details', 'emp1'
exit
content_copyCOPY

Use the following schema structure and construct HBase tables: Table Name: employee_details Column Families: PersonalInfo, ProfessionalInfo PersonalInfo: name, age, gender ProfessionalInfo: designation, salary, department 1. Create employee_details HBase table 2. Insert ten records into the employee_detailstable 3. Display details of an employee with a specific name 4. Update the Salary of an employee with a specific name 5. Delete the record of an employee with a specific name