apache / pulsar-manager

Apache Pulsar Manager
https://pulsar.apache.org/
Apache License 2.0
518 stars 246 forks source link

compile error #312

Open wenjun8888 opened 4 years ago

wenjun8888 commented 4 years ago

The latest version can not compile, see:

Task :compileJava /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:132: error: cannot find symbol if (StringUtils.isNotBlank(pulsarJwtToken)) { ^ symbol: variable pulsarJwtToken location: class BrokerStatsServiceImpl /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:132: error: cannot find symbol if (StringUtils.isNotBlank(pulsarJwtToken)) { ^ symbol: variable StringUtils location: class BrokerStatsServiceImpl /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:133: error: cannot find symbol header.put("Authorization", String.format("Bearer %s", pulsarJwtToken)); ^ symbol: variable pulsarJwtToken location: class BrokerStatsServiceImpl /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:133: error: cannot find symbol header.put("Authorization", String.format("Bearer %s", pulsarJwtToken)); ^ symbol: variable header location: class BrokerStatsServiceImpl /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:139: error: cannot find symbol String httpTestResult = HttpUtil.doGet( url + "/admin/v2/brokers/health", header); ^ symbol: variable header location: class BrokerStatsServiceImpl /opt/Downloads/pulsar-manager/src/main/java/org/apache/pulsar/manager/service/impl/BrokerStatsServiceImpl.java:139: error: cannot find symbol String httpTestResult = HttpUtil.doGet( url + "/admin/v2/brokers/health", header); ^ symbol: variable HttpUtil location: class BrokerStatsServiceImpl Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 6 errors

Task :compileJava FAILED

FAILURE: Build failed with an exception.

wenjun8888 commented 4 years ago

Thank,it works. But i find when it's build , the port 7750 disappered and a port 8080 instead. Is it correct?

eolivelli commented 4 years ago

it depends on application.properties configuration file. We are still in the process on refactoring configuration and the way we are bundling the front-end.

If you run the backend-end on 8080 you can deploy the front-end inside the same java process. No need for NGinx