Skip to content

HSpark not finding existing tables #1

@shay1bz

Description

@shay1bz

Hi,

I am running hspark against hbase server but the most simple select count(*) from myTable query throws AnalysisException: Table or view not found error.
hbase-site.xml and core-site.xml are configured properly, visible to sparkContext.hadoopConfiguration, and working properly on other projects.
hbaseContext.catalog.listTables().show shows no tables at all. Am I missing some necessary initialization?
My code is:

class MyTests extends FunSuite with BeforeAndAfterAll {

  val spark = SparkSession.builder().master("local[1]").getOrCreate()
  val hbaseContext = new HBaseSparkSession(spark.sparkContext)
  test("sanity test"){
    import hbaseContext.sql
    val df = sql("select * from myTable")
    df.count()
  }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions