Configure Pig
About this task
IMPORTANT This component is deprecated. Hewlett Packard
Enterprise recommends using an alternate product. For more information, see Discontinued Ecosystem Components.
Pig runs
in MapReduce mode by default. If you want to run Pig in local mode (pig -x
local
), add the following properties to the
/opt/mapr/pig/pig-<version>/conf/pig.properties file:
fs.file.impl=org.apache.hadoop.fs.LocalFileSystem
io.file.buffer.size=4096
The io.file.buffer.size
property defines how much data is buffered
during read and write operations. This value defaults to -1
, which causes
Pig to fail if the local filesystem is used.