HadoopProperties.java 877 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. package com.primeton.damp.core.config;
  2. import lombok.Getter;
  3. import lombok.Setter;
  4. import org.springframework.boot.context.properties.ConfigurationProperties;
  5. import org.springframework.context.annotation.Configuration;
  6. /**
  7. * <pre>
  8. *
  9. * Created by zhaopx.
  10. * User: zhaopx
  11. * Date: 2021/4/2
  12. * Time: 16:01
  13. *
  14. * </pre>
  15. *
  16. * @author zhaopx
  17. */
  18. @Configuration
  19. @ConfigurationProperties(prefix = "hadoop")
  20. @Getter
  21. @Setter
  22. public class HadoopProperties {
  23. /**
  24. * hdfs 文件类型, cluster、local 用 localFile FS 模拟 HDFS
  25. */
  26. String hdfsType = "local";
  27. /**
  28. * 认证的租户名称
  29. */
  30. String tenentName;
  31. /**
  32. * hdfs coreSite
  33. */
  34. String coreSite;
  35. /**
  36. * hdfs Site
  37. */
  38. String hdfsSite;
  39. /**
  40. * user keytab
  41. */
  42. String userKeytab;
  43. /**
  44. * kerberos
  45. */
  46. String krb5File;
  47. }