You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@nifi.apache.org by Toivo Adams <to...@gmail.com> on 2015/04/05 13:38:53 UTC

NiFi Filenames too long

Is it possible to use shorter folder and file names?
Linux/Unix like systems doesn't care but Windows is picky!
For example Git complains:

C:\Users\xxxxxxx\Local_Files\git>git clone
http://git-wip-us.apache.org/repos/asf/incubator-nifi.git
Cloning into 'incubator-nifi'...
remote: Counting objects: 26586, done.
remote: Compressing objects: 100% (9207/9207), done.
remote: Total 26586 (delta 13086), reused 23803 (delta 11568)
Receiving objects: 100% (26586/26586), 17.86 MiB | 2.80 MiB/s, done.
Resolving deltas: 100% (13086/13086), done.
Checking connectivity... done.
error: unable to create file
nifi/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/
java/org/apache/nifi/distributed/cache/client/DistributedMapCacheClientService.java
(Filename too long)
error: unable to create file
nifi/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/
java/org/apache/nifi/distributed/cache/client/DistributedSetCacheClientService.java
(Filename too long)
fatal: cannot create directory at
'nifi/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src
/main/resources/docs/org.apache.nifi.distributed.cache.client.DistributedMapCacheClientService':
Filename too long

Yes I know, I can change git folder location and hopefully this helps, but
still names together are rather long.

I am using Windows 7

Thanks
Toivo




--
View this message in context: http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/NiFi-Filenames-too-long-tp1096.html
Sent from the Apache NiFi (incubating) Developer List mailing list archive at Nabble.com.

Re: NiFi Filenames too long

Posted by Toivo Adams <to...@gmail.com>.
This time it worked like a charm.
Now I need to convince Eclipse also.

C:\git>git --version
git version 1.9.5.msysgit.1

C:\git>git config --global core.longpaths true

C:\git>git clone http://git-wip-us.apache.org/repos/asf/incubator-nifi.git
Cloning into 'incubator-nifi'...
remote: Counting objects: 26586, done.
remote: Compressing objects: 100% (9207/9207), done.
remote: Total 26586 (delta 13086), reused 23802 (delta 11568)
Receiving objects: 100% (26586/26586), 17.87 MiB | 2.66 MiB/s, done.
Resolving deltas: 100% (13086/13086), done.
Checking connectivity... done.
Checking out files: 100% (2520/2520), done.

C:\git>cd incubator-nifi

C:\git\incubator-nifi>git checkout develop
Branch develop set up to track remote branch develop from origin.
Switched to a new branch 'develop'

Thanks a lot!
Toivo




--
View this message in context: http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/NiFi-Filenames-too-long-tp1096p1100.html
Sent from the Apache NiFi (incubating) Developer List mailing list archive at Nabble.com.

Re: NiFi Filenames too long

Posted by Toivo Adams <to...@gmail.com>.
Thank you for suggestions.
I already changed git folder to c:/git and clone succeeded, but checkout
failed.

I’ll start over and let’s see how this works out configuring git to accept
long filenames.


C:\git>git clone http://git-wip-us.apache.org/repos/asf/incubator-nifi.git
Cloning into 'incubator-nifi'...
remote: Counting objects: 26586, done.
remote: Compressing objects: 100% (9207/9207), done.
Receiving objects: 100% (26586/26586), 17.86 MiB | 2.32 MiB/s, done.ng
objects: 100% (26586/26586), 17.14 MiB | 2.34 MiB/s

Resolving deltas: 100% (13091/13091), done.
Checking connectivity... done.
Checking out files: 100% (2520/2520), done.

C:\git>cd incubator-nifi
C:\git\incubator-nifi>git checkout develop
error: cannot stat
'nifi/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/resources
/docs/org.apache.nifi.distributed.cache.client.DistributedMapCacheClientService/additionalDetails.html':
Filename too long

I used force to checkout

C:\git\incubator-nifi>git checkout develop --force
error: unable to create file
nifi/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/
resources/docs/org.apache.nifi.distributed.cache.client.DistributedMapCacheClientService/additionalDetails.html
(Filename too long)
Branch develop set up to track remote branch develop from origin.
Switched to a new branch 'develop'

Import exiting projects to Eclipse didn’t succeed also.
But this more like Eclipse Maven plugin problem which sometimes get
confused.
 




--
View this message in context: http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/NiFi-Filenames-too-long-tp1096p1099.html
Sent from the Apache NiFi (incubating) Developer List mailing list archive at Nabble.com.

Re: NiFi Filenames too long

Posted by Tony Kurc <tr...@gmail.com>.
I had the same issue - here is the stackoverflow thread I used to fix it:

http://stackoverflow.com/questions/21123415/git-pull-aborted-with-error-filename-too-long

I recloned from scratch, worked like a charm. Refetching or checking out
another branch did not work.

On Sun, Apr 5, 2015 at 9:02 AM, Michael Moser <mo...@gmail.com> wrote:

> Toivo,
>
> I resolved this by configuring git to accept long filenames.  You need to
> make sure your version of mysysgit supports this config, because it's a
> relatively new feature.  1.9.4.mysysgit.1 I believe.
>
> git config --global core.longpaths true
> or
> git config --system core.longpaths true
>
> If I remember correctly, I had to clone the repository again after this
> config change.
>
> Regards,
> -- Mike
>
>
> On Sun, Apr 5, 2015 at 7:38 AM, Toivo Adams <to...@gmail.com> wrote:
>
> > Is it possible to use shorter folder and file names?
> > Linux/Unix like systems doesn't care but Windows is picky!
> > For example Git complains:
> >
> > C:\Users\xxxxxxx\Local_Files\git>git clone
> > http://git-wip-us.apache.org/repos/asf/incubator-nifi.git
> > Cloning into 'incubator-nifi'...
> > remote: Counting objects: 26586, done.
> > remote: Compressing objects: 100% (9207/9207), done.
> > remote: Total 26586 (delta 13086), reused 23803 (delta 11568)
> > Receiving objects: 100% (26586/26586), 17.86 MiB | 2.80 MiB/s, done.
> > Resolving deltas: 100% (13086/13086), done.
> > Checking connectivity... done.
> > error: unable to create file
> >
> >
> nifi/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/
> >
> >
> java/org/apache/nifi/distributed/cache/client/DistributedMapCacheClientService.java
> > (Filename too long)
> > error: unable to create file
> >
> >
> nifi/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/
> >
> >
> java/org/apache/nifi/distributed/cache/client/DistributedSetCacheClientService.java
> > (Filename too long)
> > fatal: cannot create directory at
> >
> >
> 'nifi/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src
> >
> >
> /main/resources/docs/org.apache.nifi.distributed.cache.client.DistributedMapCacheClientService':
> > Filename too long
> >
> > Yes I know, I can change git folder location and hopefully this helps,
> but
> > still names together are rather long.
> >
> > I am using Windows 7
> >
> > Thanks
> > Toivo
> >
> >
> >
> >
> > --
> > View this message in context:
> >
> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/NiFi-Filenames-too-long-tp1096.html
> > Sent from the Apache NiFi (incubating) Developer List mailing list
> archive
> > at Nabble.com.
> >
>

Re: NiFi Filenames too long

Posted by Michael Moser <mo...@gmail.com>.
Toivo,

I resolved this by configuring git to accept long filenames.  You need to
make sure your version of mysysgit supports this config, because it's a
relatively new feature.  1.9.4.mysysgit.1 I believe.

git config --global core.longpaths true
or
git config --system core.longpaths true

If I remember correctly, I had to clone the repository again after this
config change.

Regards,
-- Mike


On Sun, Apr 5, 2015 at 7:38 AM, Toivo Adams <to...@gmail.com> wrote:

> Is it possible to use shorter folder and file names?
> Linux/Unix like systems doesn't care but Windows is picky!
> For example Git complains:
>
> C:\Users\xxxxxxx\Local_Files\git>git clone
> http://git-wip-us.apache.org/repos/asf/incubator-nifi.git
> Cloning into 'incubator-nifi'...
> remote: Counting objects: 26586, done.
> remote: Compressing objects: 100% (9207/9207), done.
> remote: Total 26586 (delta 13086), reused 23803 (delta 11568)
> Receiving objects: 100% (26586/26586), 17.86 MiB | 2.80 MiB/s, done.
> Resolving deltas: 100% (13086/13086), done.
> Checking connectivity... done.
> error: unable to create file
>
> nifi/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/
>
> java/org/apache/nifi/distributed/cache/client/DistributedMapCacheClientService.java
> (Filename too long)
> error: unable to create file
>
> nifi/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src/main/
>
> java/org/apache/nifi/distributed/cache/client/DistributedSetCacheClientService.java
> (Filename too long)
> fatal: cannot create directory at
>
> 'nifi/nifi-nar-bundles/nifi-standard-services/nifi-distributed-cache-services-bundle/nifi-distributed-cache-client-service/src
>
> /main/resources/docs/org.apache.nifi.distributed.cache.client.DistributedMapCacheClientService':
> Filename too long
>
> Yes I know, I can change git folder location and hopefully this helps, but
> still names together are rather long.
>
> I am using Windows 7
>
> Thanks
> Toivo
>
>
>
>
> --
> View this message in context:
> http://apache-nifi-incubating-developer-list.39713.n7.nabble.com/NiFi-Filenames-too-long-tp1096.html
> Sent from the Apache NiFi (incubating) Developer List mailing list archive
> at Nabble.com.
>

Re: NiFi Filenames too long

Posted by Roksolana <yu...@yandex.com>.
I used to have similar problems too, but after using "long path tool"
everything was solved. Try this software and you would be glad you did.




--
View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/NiFi-Filenames-too-long-tp1096p11087.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.

Re: NiFi Filenames too long

Posted by shenya <4e...@gmail.com>.
Please try long path tool.



--
View this message in context: http://apache-nifi-developer-list.39713.n7.nabble.com/NiFi-Filenames-too-long-tp1096p9437.html
Sent from the Apache NiFi Developer List mailing list archive at Nabble.com.