Github user luchesar commented on the pull request:
https://github.com/apache/spark/pull/2883#issuecomment-60047780
I have a Linux box with encrypted home folder on ext4 File system. Ext4's
max file name length is 255 bytes.
scalac will generate class file names like that for closures.
CurrencyInitializer$$anonfun$com$gottex$gottware$server$startup$initializers$impl$currency$CurrencyInitializer$$updateDepositEquivalentBonds$1.class
On encrypted files system the file names get encrypted and get much longer
then usual. This leads to failing build for me on my my machine and a quick
search showed other people are experiencing the same problem.
Setting -Xmax-classfile-name scalac parameter tells scalac to generate
class file names with length at max X bytes. I find 128 works very well for all
the projects I've worked for.
This is nice to have but not mandatory really, I just need to set these
every time I build Spark on my local machine plus I can build it on unencrypted
partition if I had one.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]