Skip to content

Instantly share code, notes, and snippets.

@xslogic
Created November 5, 2010 04:18
Show Gist options
  • Select an option

  • Save xslogic/663636 to your computer and use it in GitHub Desktop.

Select an option

Save xslogic/663636 to your computer and use it in GitHub Desktop.
Instantiating a thrift client
{ok, TFactory} =
thrift_socket_transport:new_transport_factory(
phoebus_utils:get_env(thriftfs_hostname, "localhost"),
phoebus_utils:get_env(thriftfs_port, 8899), []),
{ok, PFactory} =
thrift_binary_protocol:new_protocol_factory(TFactory, []),
{ok, Protocol} = PFactory(),
{ok, Client} =
thrift_client:new(Protocol, thriftHadoopFileSystem_thrift),
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment