Advertisement
ImperfectionistCoder

Untitled

Jan 31st, 2022
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MySQL 0.84 KB | None | 0 0
  1. CREATE EXTERNAL TABLE db_student.Customer (
  2. CustomerID String,
  3. Gender String,
  4. SeniorCitizen Int,
  5. Partner String,
  6. Dependents String,
  7. Tenure Int,
  8. PhoneService String,
  9. MultipleLines String,
  10. InternetService String,
  11. OnlineSecurity String,
  12. OnlineBackup String,
  13. DeviceProtection String,
  14. TechSupport String,
  15. StreamingTV String,
  16. StreamingMovies String,
  17. Contract String,
  18. PaperlessBilling String,
  19. PaymentMethod String,
  20. MonthlyCharges Float,
  21. TotalCharges Float,
  22. Churn String)
  23. STORED BY 'org.apache.hadoop.hive.hbase.HBaseStorageHandler'
  24. WITH SERDEPROPERTIES (
  25. 'hbase.columns.mapping'=':key,id:g,id:sc,id:p,id:d,id:t,srv:ps,srv:ml,srv:is,srv:os,srv:ob,srv:dp,srv:ts,srv:stv,srv
  26. :sm,val:c,val:pb,val:pm,val:mc,val:tc,val:ch')
  27. TBLPROPERTIES(
  28. 'hbase.table.name' = 'ns_student:customer',
  29. 'hbase.mapred.output.outputtable' = 'ns_student:customer');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement