我有点麻烦,不知道为什么。我不断得到:
Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder 'hbase.properties' in string value "file://${hbase.properties}"
在my context.xml中:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:hdp="http://www.springframework.org/schema/hadoop"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http://www.springframework.org/schema/hadoop http://www.springframework.org/schema/hadoop/spring-hadoop.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd ">
<context:property-placeholder location="hbase.properties"/>
<context:component-scan base-package="com.hyatt.rtap.viewer"/>
<hdp:configuration id="hadoopConfiguration">
fs.defaultFS=hdfs://localhost:8080
</hdp:configuration>
<hdp:hbase-configuration configuration-ref="hadoopConfiguration" zk-quorum="${hbase.zk.host}" zk-port="${hbase.zk.port}"/>
</beans>
我的hbase.properties如下:
hbase.zk.host=sandbox.hortonworks.com
hbase.zk.port=2181
我想不出怎么解决这个问题。
暂无答案!
目前还没有任何答案,快来回答吧!