在带有datanucleus+jpa的hbase中具有集合的persist对象

c86crjj0  于 2021-06-09  发布在  Hbase
关注(0)|答案(0)|浏览(210)

我´m使用datanucleus和jpa在hbase中分配对象。
我有2节课

import javax.persistence.*;
import java.util.List;
import javax.persistence.Entity;

@Entity
@IdClass(ComposedIdKey.class)
@Table(name="bolha")
public class Customer_test2 {

    @Id
    @Column(name = "data:_firstName")
    public String firstName;

    @Id
    @Column(name = "data:_lastName")
    public String lastName;

    @Id
    @Column(name = "data:_dateOfBirth")
    public String dateOfBirth;

    @Basic
    @Lob
    @Column(name="data:Telephones")
    public List<TelephoneNumber> telephones;

    public Customer_test2() {
    }

public class TelephoneNumber implements Serializable  {

 public CharSequence phoneType;
 public CharSequence phone;

  public TelephoneNumber() {}

当我持久化对象时,会出现以下错误:

Caused by: org.apache.hadoop.hbase.client.RetriesExhaustedWithDetailsException: Failed 1 action: org.apache.hadoop.hbase.regionserver.NoSuchColumnFamilyException: Column family bolha does not exist in region bolha,,1462285108381.a5453201be241f6601cfdb2714b802ea. in table 'bolha',

但该列存在。有什么帮助吗

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题