You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by "gopi.l" <hb...@gmail.com> on 2013/01/07 07:42:11 UTC

while doing mapreducing with hbase the follwing error came even

n error occurred at line: 6 in the generated java file
Only a type can be imported. org.apache.hadoop.conf.Configuration resolves to a
package

An error occurred at line: 7 in the generated java file
Only a type can be imported. org.apache.hadoop.hbase.HBaseConfiguration resolves
to a package

An error occurred at line: 5 in the jsp file: /MapReduceQuran.jsp
Configuration cannot be resolved to a type
2: 
3: <%
4: 	String key=request.getParameter("inputKey");
5: Configuration conf= HBaseConfiguration.create();
6: out.println("config obj is"+conf);//here it showing the error only class is
added not the package
7: 	MapReduceQuran.searchKey(key);
8: 	


An error occurred at line: 5 in the jsp file: /MapReduceQuran.jsp
HBaseConfiguration cannot be resolved
2: 
3: <%
4: 	String key=request.getParameter("inputKey");
5: Configuration conf= HBaseConfiguration.create();
6: out.println("config obj is"+conf);//here it showing the error only class is
added not the package
7: 	MapReduceQuran.searchKey(key);
8: 	




Re: while doing mapreducing with hbase the follwing error came even

Posted by Harsh J <ha...@cloudera.com>.
Seems to be an issue with your web-application and not HBase. Reading
over http://stackoverflow.com/questions/1858463/java-error-only-a-type-can-be-imported-xyz-resolves-to-a-package
may help you.

On Mon, Jan 7, 2013 at 12:12 PM, gopi.l <hb...@gmail.com> wrote:
> n error occurred at line: 6 in the generated java file
> Only a type can be imported. org.apache.hadoop.conf.Configuration resolves to a
> package
>
> An error occurred at line: 7 in the generated java file
> Only a type can be imported. org.apache.hadoop.hbase.HBaseConfiguration resolves
> to a package
>
> An error occurred at line: 5 in the jsp file: /MapReduceQuran.jsp
> Configuration cannot be resolved to a type
> 2:
> 3: <%
> 4:      String key=request.getParameter("inputKey");
> 5: Configuration conf= HBaseConfiguration.create();
> 6: out.println("config obj is"+conf);//here it showing the error only class is
> added not the package
> 7:      MapReduceQuran.searchKey(key);
> 8:
>
>
> An error occurred at line: 5 in the jsp file: /MapReduceQuran.jsp
> HBaseConfiguration cannot be resolved
> 2:
> 3: <%
> 4:      String key=request.getParameter("inputKey");
> 5: Configuration conf= HBaseConfiguration.create();
> 6: out.println("config obj is"+conf);//here it showing the error only class is
> added not the package
> 7:      MapReduceQuran.searchKey(key);
> 8:
>
>
>



-- 
Harsh J