AuthPrincipal.java 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. package com.primeton.dsp.datarelease.data.bdata;
  2. import java.io.File;
  3. /**
  4. *
  5. * Hive Hbase 租户认证信息
  6. *
  7. * <pre>
  8. *
  9. * Created by zhaopx.
  10. * User: zhaopx
  11. * Date: 2020/4/20
  12. * Time: 10:52
  13. *
  14. * </pre>
  15. *
  16. * @author zhaopx
  17. */
  18. public abstract class AuthPrincipal {
  19. /**
  20. * 返回租户名称
  21. * @return
  22. */
  23. public abstract String getPrincipal();
  24. /**
  25. * 返回租户描述
  26. * @return
  27. */
  28. public abstract String getPrincipalDesc();
  29. /**
  30. * 返回用户 user keytab 文件地址
  31. * @return
  32. */
  33. public abstract File getUserKeytabFile();
  34. /**
  35. * 返回用户 user krb5 文件地址
  36. * @return
  37. */
  38. public abstract File getKrb5File();
  39. /**
  40. * 返回用户 user hive client 文件地址, FI 特有
  41. * @return
  42. */
  43. public abstract File getHiveClientFile();
  44. public abstract File getCoreSite();
  45. public abstract File getHdfsSite();
  46. public abstract File getHiveSite();
  47. public abstract File getHBaseSite();
  48. }