<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Is there a way to have pig default to python 3.4 in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-have-pig-default-to-python-3-4/m-p/99691#M12811</link>
    <description>&lt;P&gt;You need to update the pig.properties value to be like the below to force it to use a different python alias when using the new Pig 13+ Python Streaming functions:&lt;/P&gt;&lt;PRE&gt;pig.streaming.udf.python.command=python3&lt;/PRE&gt;</description>
    <pubDate>Tue, 22 Dec 2015 22:41:50 GMT</pubDate>
    <dc:creator>jniemiec</dc:creator>
    <dc:date>2015-12-22T22:41:50Z</dc:date>
    <item>
      <title>Is there a way to have pig default to python 3.4</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-have-pig-default-to-python-3-4/m-p/99689#M12809</link>
      <description>&lt;P&gt;we got python 3.4 installed and is there a way to have pig use 3.4 as default python instead of 2.6?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 00:57:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-have-pig-default-to-python-3-4/m-p/99689#M12809</guid>
      <dc:creator>chrsvarma</dc:creator>
      <dc:date>2015-12-17T00:57:27Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have pig default to python 3.4</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-have-pig-default-to-python-3-4/m-p/99690#M12810</link>
      <description>&lt;P&gt;Are you talking about running a Pig UDF written in Python? You need to make sure you are using streaming_python instead of jython. What does your REGISTER command look like?&lt;/P&gt;</description>
      <pubDate>Thu, 17 Dec 2015 01:19:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-have-pig-default-to-python-3-4/m-p/99690#M12810</guid>
      <dc:creator>rich1</dc:creator>
      <dc:date>2015-12-17T01:19:16Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have pig default to python 3.4</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-have-pig-default-to-python-3-4/m-p/99691#M12811</link>
      <description>&lt;P&gt;You need to update the pig.properties value to be like the below to force it to use a different python alias when using the new Pig 13+ Python Streaming functions:&lt;/P&gt;&lt;PRE&gt;pig.streaming.udf.python.command=python3&lt;/PRE&gt;</description>
      <pubDate>Tue, 22 Dec 2015 22:41:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-have-pig-default-to-python-3-4/m-p/99691#M12811</guid>
      <dc:creator>jniemiec</dc:creator>
      <dc:date>2015-12-22T22:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a way to have pig default to python 3.4</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-have-pig-default-to-python-3-4/m-p/99692#M12812</link>
      <description>&lt;P&gt;Adding that setting is not really working for me, I'm doing something like this &lt;/P&gt;&lt;PRE&gt;register 's3://fernandos-tests/python-udfs/python-version.py' using streaming_python as pyudfs;
...
results = FOREACH limited GENERATE pyudfs.version();

DUMP results;&lt;/PRE&gt;&lt;P&gt;My python code looking like...&lt;/P&gt;&lt;PRE&gt;from pig_util import outputSchema

import sys

@outputSchema('word:chararray')
def version():
    return sys.version
&lt;/PRE&gt;&lt;P&gt;And still getting python version 2.7&lt;/P&gt;&lt;P&gt;Any hints?&lt;/P&gt;</description>
      <pubDate>Wed, 17 Jan 2018 05:59:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Is-there-a-way-to-have-pig-default-to-python-3-4/m-p/99692#M12812</guid>
      <dc:creator>fernando_castel</dc:creator>
      <dc:date>2018-01-17T05:59:51Z</dc:date>
    </item>
  </channel>
</rss>

