Skip to content

Commit 9a6ecd3

Browse files
committed
feat: Expose thrift connection configuration to hbase online store config
Signed-off-by: Hai Nguyen <quanghai.ng1512@gmail.com>
1 parent 54496f4 commit 9a6ecd3

File tree

1 file changed

+9
-0
lines changed
  • sdk/python/feast/infra/online_stores/contrib/hbase_online_store

1 file changed

+9
-0
lines changed

sdk/python/feast/infra/online_stores/contrib/hbase_online_store/hbase.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from typing import Any, Callable, Dict, List, Optional, Sequence, Tuple
55

66
from happybase import ConnectionPool
7+
from happybase.connection import DEFAULT_TRANSPORT, DEFAULT_PROTOCOL
78
from pydantic.typing import Literal
89

910
from feast import Entity
@@ -32,6 +33,12 @@ class HbaseOnlineStoreConfig(FeastConfigBaseModel):
3233
connection_pool_size: int = 4
3334
"""Number of connections to Hbase Thrift server to keep in the connection pool"""
3435

36+
protocol: str = DEFAULT_PROTOCOL
37+
"""Protocol used to communicate with Hbase Thrift server"""
38+
39+
transport: str = DEFAULT_TRANSPORT
40+
"""Transport used to communicate with Hbase Thrift server"""
41+
3542

3643
class HbaseOnlineStore(OnlineStore):
3744
"""
@@ -59,6 +66,8 @@ def _get_conn(self, config: RepoConfig):
5966
host=store_config.host,
6067
port=int(store_config.port),
6168
size=int(store_config.connection_pool_size),
69+
protocol=store_config.protocol,
70+
transport=store_config.transport,
6271
)
6372
return self._conn
6473

0 commit comments

Comments
 (0)